We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0aac668 commit eff29baCopy full SHA for eff29ba
1 file changed
.github/workflows/deploy.yml
@@ -38,16 +38,13 @@ jobs:
38
run: npm run build
39
40
- name: Commit version update
41
- run: |
42
- git config --local user.email "action@github.com"
43
- git config --local user.name "GitHub Action"
44
- git add package.json package-lock.json
45
- if git diff --staged --quiet; then
46
- echo "No changes to commit"
47
- else
48
- git commit -m "chore: update package.json version to ${{ steps.version.outputs.VERSION }}"
49
- git push
50
- fi
+ uses: test-room-7/action-update-file@v1
+ with:
+ file-path: |
+ package.json
+ package-lock.json
+ commit-msg: "chore: update package.json version to ${{ steps.version.outputs.VERSION }}"
+ github-token: ${{ secrets.GITHUB_TOKEN }}
51
52
- name: Publish to npm
53
run: npm publish
0 commit comments