Skip to content

Publish to npm registry #7

Publish to npm registry

Publish to npm registry #7

Workflow file for this run

name: Publish to npm registry
on:
release:
types:
- published
# Allow workflow to be manually run from the GitHub UI
workflow_dispatch:
jobs:
publish:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: NPM install
run: npm install
- name: NPM publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}