From 3915e1052e8a74f8d0c75e4c4e1601dc95923a15 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 9 Sep 2024 22:02:06 +0200 Subject: [PATCH] ci(js): must set registry url --- .github/workflows/javascript.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 23731b3..2d3def6 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -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 @@ -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 @@ -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 }}