Skip to content

Publish

Publish #74

Workflow file for this run

name: Publish
on:
create:
tags:
- "v*"
env:
CARGO_INCREMENTAL: 0
CARGO_PROFILE_RELEASE_LTO: "fat"
jobs:
build:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
target: wasm32-wasi
- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"
registry-url: "https://registry.npmjs.org"
- uses: pnpm/[email protected]
with:
run_install: |
- recursive: false
args: [--ignore-scripts, --frozen-lockfile]
- name: Run cargo check for all targets
run: cargo check --color always --all --all-targets
- run: cargo test --release
- run: pnpm test
- name: publish crates
run: cargo publish --token ${CRATES_TOKEN}
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
- name: publish npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}