Update dependabot.yml #45
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: | |
- main | |
name: Package | |
jobs: | |
check: | |
name: Package distribution file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Package | |
run: | | |
npm ci | |
npm test | |
npm run build | |
- name: Commit | |
run: | | |
git config user.name "$(git log -n 1 --pretty=format:%an)" | |
git config user.email "$(git log -n 1 --pretty=format:%ae)" | |
git add dist/ | |
git commit -m "chore: Update dist" || echo "No changes to commit" | |
git push origin HEAD:main |