Skip to content

chore: upgrade deps and modernize CI/CD #8

chore: upgrade deps and modernize CI/CD

chore: upgrade deps and modernize CI/CD #8

Workflow file for this run

name: "Publish"
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v6
with:
version: 11
- uses: actions/setup-node@v6
with:
node-version: 24
package-manager-cache: false
registry-url: "https://registry.npmjs.org"
- run: |
pnpm install --no-frozen-lockfile
pnpm lint
pnpm test
pnpm build
- name: Dry-run npm publish
if: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}
run: npm publish --dry-run --access public
# OIDC trusted publishing: no NODE_AUTH_TOKEN, provenance is generated automatically.
- name: Publish to npm
if: ${{ github.event_name == 'push' || inputs.dry_run == false }}
run: npm publish --access public