Skip to content

v2.0.1

v2.0.1 #10

Workflow file for this run

# This workflow will publish a package to NPM when a release is created
name: Publish to NPM
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Install Node v18
uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Yarn
run: npm install -g yarn
- name: Clean install deps
run: yarn install --frozen-lockfile
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}