Skip to content

5.0.0-next.2

5.0.0-next.2 #26

Workflow file for this run

name: Release
on:
release:
types: [released, prereleased]
env:
TOOLCHAIN: nightly-2024-07-21
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.TOOLCHAIN }}
targets: wasm32-wasi
- name: Set up Node
uses: actions/setup-node@v4
with:
registry-url: 'https://registry.npmjs.org'
node-version: 16.x
- uses: Swatinem/rust-cache@v2
- name: Build and publish 'latest' tag
if: ${{ github.event.action == 'released' }}
run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build and publish 'next' tag
if: ${{ github.event.action == 'prereleased' }}
run: |
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}