Skip to content

Publish to NPM

Publish to NPM #2

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Publish to NPM
on:
workflow_dispatch:
release:
types: released
env:
NODE_VERSION: 20.x
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}