Skip to content

Commit bab3ff1

Browse files
committed
feat: add npm publish process to CI
1 parent f3e24d5 commit bab3ff1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ jobs:
1111
with:
1212
token: ${{ secrets.GITHUB_TOKEN }}
1313
release-type: simple
14-
package-name: release-please-action
14+
package-name: release-please-action
15+
- uses: actions/checkout@v2
16+
- run: docker run -v $PWD:/pwd -w /pwd gengjiawen/node-build bash -c "cd wasm && wasm-pack build --release --scope=gengjiawen"
17+
- run: npm publish
18+
working-directory: wasm/pkg
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)