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

release: v0.1.0-beta.52 #560

release: v0.1.0-beta.52

release: v0.1.0-beta.52 #560

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 }}'