Skip to content

Commit

Permalink
ci(js): must set registry url
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Sep 9, 2024
1 parent 5d508fb commit 8e08fc0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
fail-fast: false
matrix:
platform:
- runner: windows-latest
target: win32-x64
- runner: ubuntu-latest
target: linux-x64-gnu
- runner: windows-latest
target: win32-x64
#- runner: macos-14
# target: darwin-arm64
#- runner: macos-12
Expand Down Expand Up @@ -53,6 +53,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: https://npmjs.org/
- run: npm install
working-directory: dist/js/publish
- run: npx napi build --cargo-cwd=../../.. --platform --features=js
Expand All @@ -73,7 +74,7 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: rm -rf *.node artifacts node_modules
working-directory: dist/js/publish
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist/js/publish
- run: npm publish
working-directory: dist/js/publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8e08fc0

Please sign in to comment.