Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Publish npm package #57

Publish npm package

Publish npm package #57

Workflow file for this run

name: Publish npm package
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '^19.3.0'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public
if: github.ref_name == 'main'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}