From d118eee014330c37978cc0226f4ca74a1f321eea Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 14 Feb 2026 18:01:17 +0200 Subject: [PATCH] Update npm workflow for trusted publishing Updated Node.js version from 22 to 24 and added permissions for OIDC. --- .github/workflows/npm-publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c84ae1b4d..dceb74ddb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -7,6 +7,10 @@ on: release: types: [created] +permissions: + id-token: write # Required for OIDC + contents: read + jobs: build: runs-on: ubuntu-latest @@ -14,7 +18,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 22 + node-version: 24 - run: npm ci publish-npm: @@ -24,9 +28,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 22 + node-version: 24 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}}