Skip to content

Publish Package

Publish Package #10

Workflow file for this run

name: Publish Package
on:
workflow_dispatch:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.release.tag_name }}
- uses: pnpm/action-setup@v6
name: Install pnpm
with:
run_install: false
- name: Use node.js
uses: actions/setup-node@v6
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
package-manager-cache: false
- name: Upgrade npm for OIDC
run: npm install -g [email protected]
- name: Clear auth token for OIDC
run: echo "NODE_AUTH_TOKEN=" >> "$GITHUB_ENV"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm build
- name: Publish released packages
run: pnpm release:publish