Skip to content

ci: add npm publish workflow with OIDC provenance #1

ci: add npm publish workflow with OIDC provenance

ci: add npm publish workflow with OIDC provenance #1

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
permissions:
id-token: write
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- uses: pnpm/action-setup@v4
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build CLI
run: pnpm --filter pdf-translate build
- name: Publish
run: |
cd packages/cli
npm publish --access public --provenance