Skip to content

Publish to NPM

Publish to NPM #9

Workflow file for this run

name: Publish to NPM
on:
workflow_call:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies and build 🔧
run: pnpm install && pnpm run build
- name: Publish package on NPM
run: pnpm publish