Skip to content

Publish to NPM

Publish to NPM #32

Workflow file for this run

name: Publish to NPM
on:
workflow_dispatch:
create:
tags:
- v* # only run if new tag is created
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies and build
run: yarn
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
check-version: true # only publish if the version in package.json has changed