fix tempImg race #22
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
on: | |
push: | |
paths: | |
- 'src/**' | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
persist-credentials: false | |
- name: Setup Node.js environment | |
uses: actions/setup-node@main | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Node modules | |
run: npm ci | |
- name: Install ncc | |
run: npm i -g @vercel/ncc | |
- name: Build dist | |
run: ncc build src/index.js | |
- name: Commit file | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Build index.js" | |
- name: Push change | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
force: true | |