Skip to content

fix the release yml

fix the release yml #4

Workflow file for this run

name: Release (npm)
on:
push:
tags: [ 'v*.*.*' ] # push a tag like v0.0.1 to trigger
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # for --provenance; remove if you don't want it
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install (pnpm via npx)
run: npx -y pnpm@9 install --frozen-lockfile
- name: Build
run: npx -y pnpm@9 build
- name: Publish to npm
run: npm publish dist --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}