release: v0.0.9 #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DevBuild | |
on: | |
push: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: write | |
issues: write | |
packages: write | |
pull-requests: write | |
repository-projects: write | |
security-events: write | |
statuses: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: init | |
run: | | |
npm i -g pnpm | |
pnpm install | |
- name: update .gitignore | |
run: sed -i -e '/\/dist/d' .gitignore | |
- name: generate dev build | |
run: pnpm build | |
- name: setup sandbox | |
run: | | |
cp ./dist/bundle.js ./docs/niwango-live-loader.user.js | |
cp ./package.json ./docs/package.json | |
- name: Create new Branch | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "github-actions" | |
git checkout -b dev-build | |
git add . | |
git commit -m "auto generate" -n | |
git push -f origin dev-build |