mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Fix npm publish
This commit is contained in:
parent
605c2e78c5
commit
11baa0b010
2 changed files with 16 additions and 4 deletions
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
|
|
@ -319,20 +319,28 @@ jobs:
|
|||
build-emscripten:
|
||||
name: Emscripten
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: true
|
||||
lfs: true
|
||||
- uses: mymindstorm/setup-emsdk@v14
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Build
|
||||
run: |
|
||||
cd bindings/wasm
|
||||
./build.sh
|
||||
- uses: JS-DevTools/npm-publish@v3
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
package: bindings/wasm/package
|
||||
- name: Publish to npm
|
||||
run: |
|
||||
npm install -g npm@latest
|
||||
cd bindings/wasm/package
|
||||
npm publish --provenance --access public
|
||||
- name: Build documenation
|
||||
run: |
|
||||
cd bindings/wasm/package
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@
|
|||
"url": "https://github.com/bab2min/Kiwi/issues"
|
||||
},
|
||||
"homepage": "https://lab.bab2min.pe.kr/kiwi",
|
||||
"publishConfig": {
|
||||
"provenance": true,
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.0.0",
|
||||
"typedoc": "^0.26.2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue