Skip to content

Publish Package

Publish Package #4

Workflow file for this run

name: Publish Package
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
environment: Release
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- name: Set node version to 22
uses: actions/setup-node@v6
with:
node-version: 22
registry-url: https://registry.npmjs.org/
# disable cache, to avoid cache poisoning (https://docs.zizmor.sh/audits/#cache-poisoning)
package-manager-cache: false
cache: "pnpm"
- name: Disallow installation scripts
run: yq '.onlyBuiltDependencies = []' -i pnpm-workspace.yaml
- name: Install deps
run: pnpm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
- name: Publish package
run: npm i -g npm@^11.5.2 && pnpm run ci-publish ${{ github.ref_name }}