Skip to content

Commit 4d3184b

Browse files
authored
Merge pull request #16 from koddsson/fix-jsr-auto-publish
I am the dumbest person in the entire unicerse
2 parents f6db824 + 6c638f9 commit 4d3184b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ jobs:
2626
cache: "npm"
2727
- run: npm ci
2828
- run: npm run build --if-present
29-
- run: node .github/scripts/update-jsr.mjs ${TAG_NAME}
29+
- run: |
30+
cp jsr.json jsr.json.old
31+
jq ".version = \"${TAG_NAME}\"' jsr.json.old > jsr.json
32+
rm jsr.json.old
33+
env:
34+
TAG_NAME: ${{ github.event.release.tag_name }}
3035
- run: npx jsr publish --allow-dirty
3136
- run: npm version ${TAG_NAME} --git-tag-version=false
3237
env:

0 commit comments

Comments
 (0)