v2.3.1 #15
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] | |
workflow_dispatch: | |
jobs: | |
publish: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref_name }} | |
# Setup Node.js | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
# Setup Rust | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly-2022-10-31 | |
- run: rustup component add rust-src | |
- run: rustup target add x86_64-apple-darwin | |
# Install circom-secq | |
- uses: GuillaumeFalourd/clone-github-repo-action@v2 | |
with: | |
owner: "DanTehrani" | |
repository: "circom-secq" | |
- run: cd circom-secq && cargo build --release && cargo install --path circom | |
# Install wasm-pack | |
- uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
version: "v0.10.3" | |
- run: cargo test --release | |
- run: yarn | |
- run: yarn build | |
- run: yarn test | |
- run: npm publish | |
working-directory: ./packages/lib | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |