Skip to content

Node.js Package

Node.js Package #89

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn test
- run: yarn build
- name: Publish
run: yarn publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN }}