Skip to content

Commit 35abbe0

Browse files
authored
chore: change release method to tag (#15)
1 parent 3c28cc4 commit 35abbe0

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/publish.yml

+15-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
1-
name: Publish
2-
1+
name: Publish package
32
on:
4-
push:
5-
branches:
6-
- main
3+
release:
4+
types: [published]
75

86
jobs:
9-
publish:
7+
build:
108
runs-on: ubuntu-latest
9+
1110
permissions:
1211
contents: read
13-
id-token: write # The OIDC ID token is used for authentication with JSR.
12+
id-token: write
13+
1414
steps:
15-
- uses: actions/checkout@v4
16-
- run: npx jsr publish
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Deno
19+
uses: denoland/setup-deno@v2
20+
21+
- name: Publish JSR package
22+
run: deno publish

0 commit comments

Comments
 (0)