From 8ed43f76e4c6588ed172e589f172665733bd3487 Mon Sep 17 00:00:00 2001 From: FINEARCHS <133759614+FineArchs@users.noreply.github.com> Date: Sun, 29 Nov 2026 09:49:31 +0900 Subject: [PATCH] =?UTF-8?q?nightly=20release=E3=82=92Trusted=20Publishing?= =?UTF-8?q?=E3=81=AB=E7=A7=BB=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish-nightly.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml index 1baf7b1a..2d5c2ef6 100644 --- a/.github/workflows/publish-nightly.yml +++ b/.github/workflows/publish-nightly.yml @@ -5,6 +5,10 @@ on: - cron: '50 18 * * *' workflow_dispatch: +permissions: + id-token: write # Required for OIDC + contents: read + jobs: get-branches: runs-on: ubuntu-latest @@ -41,8 +45,6 @@ jobs: strategy: fail-fast: false matrix: ${{ fromJSON(needs.get-branches.outputs.matrix) }} - env: - NPM_SECRET: ${{ secrets.NPM_SECRET }} steps: - name: Checkout ${{ matrix.branch }} @@ -53,7 +55,9 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v7.1.0 with: - node-version: 22.x + node-version: 24.x + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds - name: Cache dependencies uses: actions/cache@v6 @@ -80,8 +84,7 @@ jobs: - name: Publish uses: JS-DevTools/npm-publish@v4 - if: ${{ env.NPM_SECRET != '' && env.LAST_COMMITS != 0 }} + if: ${{ env.LAST_COMMITS != 0 }} with: - token: ${{ env.NPM_SECRET }} tag: ${{ matrix.tag }} access: public