From 9efe39662208bebb42705c5730867e11adc2a3f9 Mon Sep 17 00:00:00 2001 From: MULHAM Date: Tue, 15 Sep 2026 21:55:26 +0700 Subject: [PATCH] ci: setup Node.js 24 in npm publish workflow for OIDC npm OIDC trusted publishing requires npm CLI 11.5.1 or later. Without an explicit Node.js 24 setup step, the workflow falls back to the runner's default npm 10 which lacks tokenless OIDC support and fails with ENEEDAUTH. --- .github/workflows/npm-publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2c76aef..8e5b310 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -24,6 +24,14 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + - name: Setup Node.js + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 + with: + node-version: 24 + cache: npm + env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + - name: Setup Bun uses: oven-sh/setup-bun@v2 with: