Skip to content

Commit

Permalink
ci: add auto publish npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer committed Mar 26, 2024
1 parent d79826f commit 6b28766
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,16 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: |
wasm-pack build
- name: Publish to npm
if: startsWith(github.ref, 'refs/tags/')
run: |
cd pkg
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
cd web
yarn
Expand Down

0 comments on commit 6b28766

Please sign in to comment.