Skip to content

Commit b096b2b

Browse files
committed
use npm to publish
1 parent cb4c260 commit b096b2b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/js.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,26 @@ jobs:
5353
path: ./wasm/dist
5454
name: libspot
5555

56+
- name: Setup Node.js
57+
uses: actions/setup-node@v4
58+
with:
59+
node-version: "20.x"
60+
registry-url: "https://npm.pkg.github.com"
61+
62+
- name: Copy .npmrc
63+
run: |
64+
ls -alh --color=auto
65+
cat ${NPM_CONFIG_USERCONFIG}
66+
cp ${NPM_CONFIG_USERCONFIG} .npmrc
67+
working-directory: ./wasm
68+
5669
- name: Publish to Github Packages
5770
run: |
5871
sed -i 's,"libspot","@asiffer/libspot",g' package.json
59-
bun publish --registry=https://npm.pkg.github.com
72+
npm publish
6073
working-directory: ./wasm
6174
env:
62-
BUN_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6376

6477
# upload:
6578
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)