Skip to content

Commit 21ef465

Browse files
authored
Merge pull request #2 from prjctimg/wip
feat: updated release workflow
2 parents ad9bb88 + f1617d4 commit 21ef465

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.github/workflows/jsr.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
name: Release to JSR
1+
# publish.yml
2+
name: Publish
23

34
on:
4-
push:
5-
branches:
6-
- main
5+
release:
6+
types: [published]
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
1313
id-token: write # The OIDC ID token is used for authentication with JSR.
14+
1415
steps:
15-
- uses: actions/checkout@v4
16-
- run: deno publish
16+
- name: Clone repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Deno 2
20+
uses: denoland/setup-deno@v2
21+
22+
- name: Set version # Get release tag and update in deno.jsonc
23+
uses: maks11060/deno-publish-version@2
24+
with:
25+
config-file: deno.jsonc # or deno.json
26+
27+
- name: Publish to JSR
28+
run: deno publish --allow-dirty

0 commit comments

Comments
 (0)