mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +01:00
ci(js): create bindings, cleanup artifacts, add token
This commit is contained in:
parent
f5b3a25192
commit
15b43310c2
1 changed files with 6 additions and 2 deletions
8
.github/workflows/javascript.yml
vendored
8
.github/workflows/javascript.yml
vendored
|
@ -55,9 +55,9 @@ jobs:
|
|||
node-version: '20'
|
||||
- run: npm install
|
||||
working-directory: dist/js/publish
|
||||
- run: npx napi build --cargo-cwd=../../.. --features=js
|
||||
- run: npx napi build --cargo-cwd=../../.. --platform --features=js
|
||||
working-directory: dist/js/publish
|
||||
- run: rm codemp.node
|
||||
- run: rm *.node
|
||||
working-directory: dist/js/publish
|
||||
- run: npx napi create-npm-dir -t .
|
||||
working-directory: dist/js/publish
|
||||
|
@ -69,6 +69,10 @@ jobs:
|
|||
working-directory: dist/js/publish
|
||||
- run: npx napi prepublish -t . --skip-gh-release
|
||||
working-directory: dist/js/publish
|
||||
env:
|
||||
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 }}
|
||||
|
|
Loading…
Reference in a new issue