Skip to content

publish to npm

publish to npm #92

Workflow file for this run

name: publish to npm
on: [workflow_dispatch]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v6
with:
registry-url: "https://registry.npmjs.org"
# Use exact Node & Yarn versions from package.json (Volta)
- uses: volta-cli/action@v4
- run: yarn install --frozen-lockfile
- run: npm publish