Skip to content

Release v1.5.1

Release v1.5.1 #13

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: publish-casper-cep78-js-client
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-22.04
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b #v3.0.2
- uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c #v1.4.0
- name: Install dependencies
run: sudo apt update && sudo apt install -y build-essential wabt
- name: Setup
run: make prepare
- name: Prepare WASMs
run: make setup-test
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@5b949b50c3461bbcd5a540b150c368278160234a #v3.4.0
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Install
working-directory: ./client-js
run: npm install
- name: Copy & convert WASMs
working-directory: ./client-js
run: npm run wasms:convert
- name: Publish to NPM
working-directory: ./client-js
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}