Skip to content

Commit 3ea6c66

Browse files
committed
use npm for release
1 parent d523d9c commit 3ea6c66

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
bun-version: latest
3333
registry-url: "https://registry.npmjs.org"
3434

35+
- name: Setup Node
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: 24
39+
3540
- name: Install Dependencies
3641
run: bun install --frozen-lockfile
3742

@@ -40,15 +45,15 @@ jobs:
4045
uses: changesets/action@v1
4146
with:
4247
version: bun run version
43-
publish: bun run release
48+
publish: npm run release
4449
env:
4550
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4651

4752
- name: Publish to GitHub Packages
4853
if: steps.changesets.outputs.published == 'true'
4954
run: |
50-
bun config set @trustnxt:registry 'https://npm.pkg.github.com'
51-
bun config set //npm.pkg.github.com/:_authToken '${NODE_AUTH_TOKEN}'
52-
bun publish --no-git-checks
55+
npm config set @trustnxt:registry https://npm.pkg.github.com
56+
npm config set //npm.pkg.github.com/:_authToken ${NODE_AUTH_TOKEN}
57+
npm publish --no-git-checks
5358
env:
5459
NODE_AUTH_TOKEN: ${{ secrets.PACKAGES_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"build": "tsup",
8787
"changeset": "changeset",
8888
"version": "changeset version && bun install",
89-
"release": "bun run build && changeset publish",
89+
"release": "bun run build && npm exec changeset -- publish",
9090
"prepublishOnly": "bun run build"
9191
}
9292
}

0 commit comments

Comments
 (0)