Skip to content

6.2.2

6.2.2 #1

Workflow file for this run

name: Publish to npm
on:
push:
tags:
- "v*" # Trigger on version tags like v6.0.0
permissions:
contents: read
id-token: write # Required for OIDC (Trusted Publishing)
jobs:
publish:
runs-on: ubuntu-latest
# environment: production # Uncomment for approval gates
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm run build
- run: npm publish --access public