Skip to content

Commit dc3d90e

Browse files
authored
Merge pull request #187 from honey32/chore/24-0720-publish-action
ci: set `publish` action
2 parents 0e17137 + 82bdcb6 commit dc3d90e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
if: startsWith(github.ref, 'refs/tags/v2.')
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Publish package
19+
run: npx jsr publish

0 commit comments

Comments
 (0)