Skip to content

fix: add pnpm lockfile for CI cache #3

fix: add pnpm lockfile for CI cache

fix: add pnpm lockfile for CI cache #3

Workflow file for this run

name: CI
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish CLI to npm
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Publish to npm
run: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}