Skip to content

Commit 556a3af

Browse files
authored
chore: publish to JSR (#556)
1 parent 9943f84 commit 556a3af

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
defaults:
1717
run:
1818
shell: bash
19+
permissions:
20+
contents: read
21+
id-token: write
1922

2023
env:
2124
CARGO_INCREMENTAL: 0
@@ -84,18 +87,6 @@ jobs:
8487
run: |
8588
cargo publish
8689
87-
- name: Get tag version
88-
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
89-
id: get_tag_version
90-
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> "$GITHUB_OUTPUT"
91-
92-
- name: Publish deno.land/x
93-
uses: denoland/publish-folder@82ce065074e7174baf444332c4b7c40869a4909a
94-
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
95-
with:
96-
folder: js
97-
branch: deno_registry
98-
tag: deno/${{ steps.get_tag_version.outputs.TAG_VERSION }}
99-
token: ${{ secrets.DENOBOT_PAT }}
100-
git-user-name: denobot
101-
git-user-email: denobot@users.noreply.github.com
90+
- name: Publish to JSR
91+
if: contains(matrix.os, 'ubuntu')
92+
run: cd js && deno run -A jsr:@david/publish-on-tag@0.1.3 --allow-dirty

js/deno.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "@deno/doc",
3+
"version": "0.0.0",
4+
"exports": {
5+
".": "./mod.ts",
6+
"./types": "./types.d.ts"
7+
}
8+
}

0 commit comments

Comments
 (0)