Skip to content

Commit

Permalink
Add release GH Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed May 1, 2022
1 parent 9c869f7 commit e1edbc7
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,26 @@
name: Release

on:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
cache: 'npm'
- run: npm ci
- run: rustup target add wasm32-unknown-unknown
- run: npm run build
- run: npm run bundle
- run: ls -lhR dist
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit e1edbc7

Please sign in to comment.