Skip to content

Workflow file for this run

on:
release:
types:
- published
jobs:
publish-npm:
runs-on: ubuntu-latest
environment: npmjs
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npmjs.org
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}