From 957656ad5be382b7d76026586a9076e7e3c44279 Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 31 Mar 2026 06:50:18 +0800 Subject: [PATCH] fix ci --- .github/workflows/publish.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aac057c..17eb800 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,8 +3,10 @@ name: Publish to npm on: push: tags: - - '*' - workflow_dispatch: + - "*" +permissions: + id-token: write # Required for OIDC + contents: read jobs: publish: @@ -17,8 +19,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '20' - registry-url: 'https://registry.npmjs.org' + node-version: "20" + registry-url: "https://registry.npmjs.org" - name: Get version from tag id: version