Skip to content

Commit 12d97e4

Browse files
committed
chore(workflow): try to use setup-node instead of setup-bun to publish
1 parent 2cd5cc5 commit 12d97e4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/publish-dry-run.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: oven-sh/setup-bun@v1
1919
with:
20-
registry-url: 'https://registry.npmjs.org'
20+
registry-url: "https://registry.npmjs.org"
2121
- run: bun install
2222
- run: bun check:apply
2323
- run: bun type-check

.github/workflows/publish.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
2828
- name: Build
2929
uses: oven-sh/setup-bun@v1
30-
with:
31-
registry-url: 'https://registry.npmjs.org'
3230
- run: bun install
3331
- run: bun check:apply
3432
- run: bun type-check
@@ -37,13 +35,17 @@ jobs:
3735
- run: bun run build
3836

3937
- name: Publish
40-
run: npm publish --access public
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: 20
41+
registry-url: "https://registry.npmjs.org"
42+
- run: npm publish --access public
4143
env:
4244
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4345

4446
# - uses: actions/setup-node@v4
4547
# with:
46-
# registry-url: 'https://npm.pkg.github.com'
48+
# registry-url: "https://npm.pkg.github.com"
4749
# - run: npm publish
4850
# env:
4951
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"!build.ts",
1515
"!**/*.config.ts",
1616
"!**/*.test.ts",
17-
"!**/__test__"
17+
"!**/__test__",
18+
"!**/examples"
1819
],
1920
"type": "module",
2021
"module": "index.ts",

0 commit comments

Comments
 (0)