Skip to content

Commit 2bf13b2

Browse files
committed
ci: publish to jsr via npx jsr
1 parent 8af9dd5 commit 2bf13b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-jsr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
shell: bash
4545
run: |
4646
set -euo pipefail
47-
tag="${{ inputs.tag || github.ref_name }}"
48-
tag="${tag#v}"
47+
raw_tag="${{ inputs.tag || github.ref_name }}"
48+
tag="${raw_tag#v}"
4949
version="$(node -p "require('./deno.json').version")"
5050
5151
if [[ "${tag}" != "${version}" ]]; then
52-
echo "Tag (${GITHUB_REF_NAME}) does not match deno.json version (${version})."
52+
echo "Tag (${raw_tag}) does not match deno.json version (${version})."
5353
exit 1
5454
fi
5555
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
# Tokenless publishing requires linking the JSR package to this GitHub repository
6565
# in the package settings on jsr.io, and OIDC enabled via `id-token: write`.
66-
deno publish
66+
npx jsr publish
6767
6868
- name: Generate release notes
6969
shell: bash

0 commit comments

Comments
 (0)