Merge pull request #145 from aws-actions/dependabot/npm_and_yarn/undi… #94
This file contains hidden or 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@v3 | |
| with: | |
| ref: master | |
| - name: Package | |
| run: | | |
| npm ci | |
| npm test | |
| npm run all | |
| - name: Commit | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git add dist/ | |
| git commit -m "(chore) updating dist" || echo "No changes to commit" | |
| git push origin HEAD:master |