Skip to content

ci(workflow): update Node.js version to 24 and refine dependency inst… #28

ci(workflow): update Node.js version to 24 and refine dependency inst…

ci(workflow): update Node.js version to 24 and refine dependency inst… #28

Workflow file for this run

name: NPM Publish

Check failure on line 1 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

(Line: 33, Col: 9): Unexpected value 'with'
on:
release:
types: [published]
permissions:
id-token: write
contents: read
packages: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rm -rf .npmrc
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install
with:
version: 10
run_install: true
- name: Build
run: pnpm run build
- name: Verify OIDC authentication (diagnostic)
# If OIDC trust is configured on npm this should print the npm username.
# Keep permissive so it won't fail the job if whoami doesn't return.
run: |
npm whoami || pnpm whoami || true
- name: Publish to npm (via OIDC)
run: pnpm publish --provenance --access public --no-git-checks