Skip to content

v0.2.0

v0.2.0 #119

Workflow file for this run

name: Publish to NPM
on: [push]
jobs:
build-test:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: yarn install
- run: yarn lint
- run: yarn build
- id: publish
name: Publish to NPM
if: github.ref == 'refs/heads/master'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
- 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 }}'