Skip to content

Commit 9ebc57e

Browse files
committed
Push tags on releases
1 parent 1bc19b0 commit 9ebc57e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929

3030
permissions:
3131
id-token: write
32+
contents: write
3233

3334
steps:
3435
- uses: actions/checkout@v4
@@ -38,5 +39,12 @@ jobs:
3839
node-version: "24"
3940
cache: pnpm
4041
- run: pnpm install
42+
- name: Create and push git tag
43+
run: |
44+
VERSION=$(node -p "require('./package.json').version")
45+
git config user.name "github-actions[bot]"
46+
git config user.email "github-actions[bot]@users.noreply.github.com"
47+
git tag -a "v${VERSION}" -m "Release v${VERSION}"
48+
git push origin "v${VERSION}"
4149
- name: Publish package
4250
run: pnpm publish -r

0 commit comments

Comments
 (0)