Skip to content

Commit e17e30c

Browse files
committed
ci: 修复推送问题
1 parent 6f798c6 commit e17e30c

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,14 @@ jobs:
3434

3535
# Generate changelog and update package.json version
3636
- name: Generate changelog
37-
run: npx standard-version --release-as ${{ github.event.release.tag_name }} --no-verify
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
41-
# Push changelog and package.json back to main
42-
- name: Push changelog back to main
4337
run: |
4438
git config user.name "github-actions[bot]"
4539
git config user.email "github-actions[bot]@users.noreply.github.com"
46-
git pull origin main --rebase # Ensure the branch is up-to-date
47-
git add CHANGELOG.md package.json
48-
git commit -m "docs(release): update changelog and version [skip ci]" || echo "No changes to commit"
49-
git push origin main
40+
npx standard-version --release-as ${{ github.event.release.tag_name }} --no-verify
5041
env:
51-
GIT_AUTHOR_NAME: github-actions[bot]
52-
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
53-
GIT_COMMITTER_NAME: github-actions[bot]
54-
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5543

5644
- name: Publish to npm
5745
run: pnpm publish --access public --no-git-checks
5846
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)