chore: attempt to fix #8
Workflow file for this run
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: | |
branches: | |
- master | |
name: Package | |
jobs: | |
check: | |
name: Package distribution file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Package | |
run: | | |
npm ci | |
npm run test | |
- name: Commit | |
run: | | |
git config --global user.name "GitHub Actions" | |
git add dist/ | |
git add node_modules/ | |
git commit -m "chore: Update dist" || echo "No changes to commit" | |
git push origin HEAD:master |