-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,7 @@ jobs: | |
run: npm install | ||
|
||
- name: Update Version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npm version patch -m "Upgrade to %s" # 可以使用 major、minor 或 patch | ||
git push --follow-tags | ||
run: npm version patch -m "Upgrade to %s" # 可以使用 major、minor 或 patch | ||
|
||
- name: Run Build | ||
run: npm run build | ||
|
@@ -36,3 +32,9 @@ jobs: | |
env: | ||
# 设置环境变量,如需要的 API 密钥、令牌等 | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Save Version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git push --follow-tags |