mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
ci(js): must set registry url
This commit is contained in:
parent
15b43310c2
commit
3915e1052e
1 changed files with 7 additions and 6 deletions
13
.github/workflows/javascript.yml
vendored
13
.github/workflows/javascript.yml
vendored
|
@ -16,10 +16,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
- runner: windows-latest
|
|
||||||
target: win32-x64
|
|
||||||
- runner: ubuntu-latest
|
- runner: ubuntu-latest
|
||||||
target: linux-x64-gnu
|
target: linux-x64-gnu
|
||||||
|
- runner: windows-latest
|
||||||
|
target: win32-x64
|
||||||
#- runner: macos-14
|
#- runner: macos-14
|
||||||
# target: darwin-arm64
|
# target: darwin-arm64
|
||||||
#- runner: macos-12
|
#- runner: macos-12
|
||||||
|
@ -53,6 +53,7 @@ jobs:
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
registry-url: https://npmjs.org/
|
||||||
- run: npm install
|
- run: npm install
|
||||||
working-directory: dist/js/publish
|
working-directory: dist/js/publish
|
||||||
- run: npx napi build --cargo-cwd=../../.. --platform --features=js
|
- run: npx napi build --cargo-cwd=../../.. --platform --features=js
|
||||||
|
@ -73,7 +74,7 @@ jobs:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- run: rm -rf *.node artifacts node_modules
|
- run: rm -rf *.node artifacts node_modules
|
||||||
working-directory: dist/js/publish
|
working-directory: dist/js/publish
|
||||||
- uses: JS-DevTools/npm-publish@v3
|
- run: npm publish
|
||||||
with:
|
working-directory: dist/js/publish
|
||||||
token: ${{ secrets.NPM_TOKEN }}
|
env:
|
||||||
package: dist/js/publish
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
Loading…
Reference in a new issue