Skip to content

Workflow file for this run

name: Publish Node.js Package
on:
release:
types: [published]
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: corepack enable && yarn install --immutable
- name: Format & lint codebase
run: yarn format && yarn lint
- name: Build
run: yarn build
- name: Run tests
run: yarn test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}