v0.0.9-alpha #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package to npmjs | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Build | |
working-directory: ./runtime | |
run: wasm-pack build --target web --release --scope radiantkit | |
- name: Publish radiantkit | |
working-directory: ./runtime/pkg | |
run: wasm-pack publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn | |
- name: Publish radiantkit-react | |
run: yarn publish --access public | |
working-directory: ./runtime/web | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |