Skip to content

Commit aa89fb4

Browse files
committed
Update publish.yml
1 parent 6259cf0 commit aa89fb4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- uses: ./.github/actions/setup
12+
- name: Set version to release tag 📝
13+
run: pnpm version from-git --no-commit-hooks --no-git-tag-version --allow-same-version
1214
- name: Publish to NPM
1315
run: pnpm publish --access public --no-git-checks
1416
env:
1517
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18+
- name: Push version changes to main branch
19+
uses: stefanzweifel/git-auto-commit-action@v5
20+
with:
21+
commit_message: "chore: release ${{ github.event.release.tag_name }}"
22+
branch: ${{ github.event.repository.default_branch }}
23+
file_pattern: package.json

0 commit comments

Comments
 (0)