Skip to content

build: Release v1.0.0-pre.6+v1-schemafix-008 #75

build: Release v1.0.0-pre.6+v1-schemafix-008

build: Release v1.0.0-pre.6+v1-schemafix-008 #75

Workflow file for this run

name: Publish Node packages
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
on:
push:
tags:
- "**"
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings -W unreachable-pub"
RUSTUP_MAX_RETRIES: 10
CARGO_TERM_COLOR: always
CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
jobs:
publish-wasm:
if: github.repository == 'wireapp/core-crypto'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Setup cargo-make
uses: davidB/rust-cargo-make@v1
- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: "latest"
- name: Build WASM package
run: |
cd crypto-ffi
cargo make wasm-build
- name: Build TS/JS Library
run: |
npm install
npm run build
- name: Publishes package to NPM
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: public