Skip to content

Commit 49d677e

Browse files
committed
Handle JSR
1 parent b12f370 commit 49d677e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ jobs:
4646
uses: changesets/action@v1
4747
with:
4848
version: pnpm run version
49-
publish: pnpm run publish
49+
publish: pnpm changeset publish
5050
commit: "ci: release"
5151
title: "ci: release"
5252
env:
5353
GITHUB_TOKEN: ${{ steps.get-token.outputs.token }}
5454
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5555
NPM_CONFIG_PROVENANCE: true
56+
- name: Publish to JSR
57+
if: steps.changesets.outputs.published == 'true'
58+
run: npx jsr publish

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"lint:types": "attw --pack .",
4343
"lint:package": "publint",
4444
"lint:prettier": "prettier --check src",
45-
"publish": "changeset publish && npx jsr publish",
4645
"lint": "pnpm run '/^lint:.*/'",
4746
"test": "pnpm build && node --test",
4847
"tsdoc": "tsdoc --src=src/index.ts && prettier --write README.md",

0 commit comments

Comments
 (0)