Skip to content

Publish to NPM public registry on release #1

Publish to NPM public registry on release

Publish to NPM public registry on release #1

Workflow file for this run

name: Publish to NPM public registry on release
on:
workflow_dispatch:
permissions:
contents: read
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: |
echo "Publishing $TAG_NAME"
npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: v1.0.0
- run: npm whoami; npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}