Skip to content

Publish to NPM

Publish to NPM #4

Workflow file for this run

name: Publish to NPM
on:
workflow_dispatch:
inputs:
prerelease:
description: For debugging
required: false
type: boolean
#release:
# types:
# - published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: echo npm publish ${IS_PRERELEASE:+--tag=prerelease}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
#IS_PRERELEASE: ${{github.event.release.prerelease}}
IS_PRERELEASE: ${{github.event.inputs.prerelease}}