Skip to content

Prepare for release 0.2.0 #7

Prepare for release 0.2.0

Prepare for release 0.2.0 #7

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Install
uses: jetli/[email protected]
with:
version: 'latest'
- name: Build
run: |
rustup default nightly
wasm-pack build --release
- name: Update package.json name
run: |
cd pkg
echo "`jq '.name = "@tangibl/topcodes-wasm"' package.json`" > package.json
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Publish to NPM
run: |
cd pkg
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}