Skip to content

0.18.0

0.18.0 #23

Workflow file for this run

name: Publish NPM Package
on:
release:
types: [published]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
working-directory: web
- name: Build
run: npm run build
working-directory: web
- name: Update package.json with the public package refs
run: ./update-package-json.sh
working-directory: web
- name: Pack
run: "npm run pack:all"
working-directory: web
- name: Publish Core
run: "npm run publish:core"
working-directory: web
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish Web Component
run: npm publish --access public
working-directory: web
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}