Skip to content

v0.1.1

v0.1.1 #24

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: yarn
cache-dependency-path: yarn.lock
- run: yarn
- run: yarn build:lib
- run: yarn config set npmAuthToken $NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: mv ./README.md ./zk-states/
- run: cd zk-states-contracts && yarn npm publish --access public --tolerate-republish
- run: cd zk-states && yarn npm publish --access public --tolerate-republish