Skip to content

Workflow file for this run

name: Build, Test, and Publish on release
on:
release:
types: [published]
branches: [main]
jobs:
build:
name: Build, test and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm test
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}