Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unsless code #45

Merged
merged 12 commits into from
Mar 14, 2024
Prev Previous commit
Next Next commit
ci(release): modify ci to release when tag add and change the release…
…-it to create new branch
  • Loading branch information
wh131462 committed Mar 14, 2024
commit c0f7c6f466907bccb0a6b22e085212c6304935f5
2 changes: 1 addition & 1 deletion .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'EternalHeartTeam/leetcode-practice' && github.ref == 'refs/heads/master'
if: github.repository == 'EternalHeartTeam/leetcode-practice'
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
Expand Down
4 changes: 2 additions & 2 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"git": {
"commitMessage": "chore: release v${version}",
"tagName": "cli-v${version}",
"branch": "stable-v${version}",
"tag": true,
"push": true,
"pushArgs": ["--follow-tags"]
Expand All @@ -16,7 +15,8 @@
"publish": false
},
"hooks": {
"after:bump": "git add CHANGELOG.md && echo 更新版本成功!添加changelog的commit成功!"
"after:bump": "git add CHANGELOG.md && echo 更新版本${version}成功!添加changelog的commit成功!",
"after:release": "git checkout master && git checkout -b stable-v${version} && git push origin stable-v${version}"
},
"plugins": {
"@release-it/bumper": {
Expand Down
Loading