Skip to content

Commit

Permalink
chore: update publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Dec 13, 2023
1 parent 1fe3fc3 commit 3041d32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pubish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: npm install

- name: Update Version
run: npm version patch -m "Upgrade to %s" # 可以使用 major、minor 或 patch
run: npm version patch

- name: Run Build
run: npm run build
Expand All @@ -37,4 +37,6 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add package.json
git commit -m "Update package version"
git push --follow-tags

0 comments on commit 3041d32

Please sign in to comment.