Skip to content

2.10.0

2.10.0 #63

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
env:
ETH_NODE_URL: ${{ secrets.ETH_NODE_URL }}
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: "18.20.0"
- name: Setup SSH to install dependencies
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install dependencies
run: npm ci
- name: Compile contracts
run: npm run compile
- name: Run tests
run: npm test
- name: Inject slug/short variables
uses: rlespinasse/[email protected]
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
token: ${{ secrets.NPM_ACCESS_TOKEN }}
access: "public"