Skip to content

Commit 7b3974f

Browse files
author
Tim Willebrands
committed
Update GitHub Actions workflow to use npm for publishing instead of Bun, and set up Node.js environment for npm publish.
1 parent 28d113f commit 7b3974f

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ jobs:
2727
- name: Build
2828
run: bun run build
2929

30-
- name: Publish (Bun)
30+
- name: Setup Node for npm publish
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
registry-url: 'https://registry.npmjs.org'
35+
36+
- name: Publish (npm)
3137
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
3238
env:
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
run: |
35-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
36-
bun publish --access public
39+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40+
run: npm publish --access public
3741

3842

0 commit comments

Comments
 (0)