Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

feat: add nonce support for Herodotus controller (#250) #559

feat: add nonce support for Herodotus controller (#250)

feat: add nonce support for Herodotus controller (#250) #559

name: Build and release
on: [push]
jobs:
build-test:
runs-on: ubuntu-20.04
env:
GOERLI_NODE_URL: ${{ secrets.GOERLI_NODE_URL }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'yarn'
- run: yarn install
- run: yarn lint:nofix
- run: yarn test
- run: yarn build
- id: publish
name: Release to NPM
if: github.ref == 'refs/heads/master'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: beta
- name: Tag successful release
if: steps.publish.outputs.version != steps.publish.outputs.old-version
uses: rickstaa/action-create-tag@v1
with:
tag: v${{ steps.publish.outputs.version }}
message: 'Latest v${{ steps.publish.outputs.version }}'