Skip to content

Publish web-client to npm #16

Publish web-client to npm

Publish web-client to npm #16

Workflow file for this run

name: Publish web-client to npm
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- uses: jetli/[email protected]
with:
version: 'latest'
- name: Build package
working-directory: ./web-client
run: ./scripts/build.sh
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm
- name: Publish to npm
working-directory: ./web-client/dist
run: npm publish --tag next --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.SISOU_NPM_TOKEN }}