Skip to content

Commit

Permalink
chore: publish to JSR (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Apr 24, 2024
1 parent 9943f84 commit 556a3af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
defaults:
run:
shell: bash
permissions:
contents: read
id-token: write

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -84,18 +87,6 @@ jobs:
run: |
cargo publish
- name: Get tag version
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
id: get_tag_version
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> "$GITHUB_OUTPUT"

- name: Publish deno.land/x
uses: denoland/publish-folder@82ce065074e7174baf444332c4b7c40869a4909a
if: contains(matrix.os, 'ubuntu') && startsWith(github.ref, 'refs/tags/')
with:
folder: js
branch: deno_registry
tag: deno/${{ steps.get_tag_version.outputs.TAG_VERSION }}
token: ${{ secrets.DENOBOT_PAT }}
git-user-name: denobot
git-user-email: denobot@users.noreply.github.com
- name: Publish to JSR
if: contains(matrix.os, 'ubuntu')
run: cd js && deno run -A jsr:@david/publish-on-tag@0.1.3 --allow-dirty
8 changes: 8 additions & 0 deletions js/deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@deno/doc",
"version": "0.0.0",
"exports": {
".": "./mod.ts",
"./types": "./types.d.ts"
}
}

0 comments on commit 556a3af

Please sign in to comment.