File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ jobs:
25
25
with :
26
26
node-version : 20
27
27
cache : " pnpm"
28
- - run : pnpm install
28
+ # Run prepublish to ensure everything is built properly
29
29
# TODO: is this manual build step actually needed?
30
+ - run : pnpm run ci:install
30
31
# `prepack` hook _should_ run but doesn't seem to.
31
- - run : pnpm run build
32
- - uses : changesets/action@v1
32
+ - run : pnpm run ci:prepublish
33
+ - name : Create Release Pull Request or Publish to npm
34
+ id : changesets
35
+ uses : changesets/action@v1
33
36
with :
34
37
version : pnpm run ci:version
35
38
publish : pnpm run ci:publish
38
41
env :
39
42
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
40
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+
45
+ - name : Publish to jsr.io
46
+ if : steps.changesets.outputs.published == 'true'
47
+ run : pnpx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'
Original file line number Diff line number Diff line change 11
11
"lint" : " biome lint --write --unsafe" ,
12
12
"type-check" : " biome lint && tsc" ,
13
13
"test" : " pnpm --color -r run test" ,
14
- "ci:version" : " changeset version && pnpm install --no-frozen-lockfile" ,
15
- "ci:publish" : " changeset publish"
14
+ "ci:install" : " pnpm install --no-frozen-lockfile" ,
15
+ "ci:version" : " changeset version && pnpx @qingshaner/jsr-release --allowDirty version --sync" ,
16
+ "ci:publish" : " changeset publish" ,
17
+ "ci:prepublish" : " pnpm build" ,
18
+ "jsr:test" : " pnpm --filter \" @clack/*\" jsr --dry-run" ,
19
+ "jsr:run" : " pnpm --filter \" @clack/*\" jsr"
16
20
},
17
21
"devDependencies" : {
18
22
"@biomejs/biome" : " 1.9.4" ,
You can’t perform that action at this time.
0 commit comments