Skip to content

NPM Publish

Publish a package to NPMJS using PNPM.

Inputs

No inputs.

Outputs

No outputs.

Secrets

SECRET REQUIRED DESCRIPTION
NPM_TOKEN true The npmjs.org API token for
your project.

Example Usage

name: Publish to npmjs.org

on:
  release:
    types: [published]
  # Allow manual trigger (workflow_dispatch)
  workflow_dispatch:

jobs:
  publish_to_npmjs:
    uses: hotosm/gh-workflows/.github/workflows/pnpm_publish.yml@main
    secrets:
      NPM_TOKEN: ${{ secrets.NPM_TOKEN }}