From 7752066f4b1d082b6de91e259379000dcf35bc60 Mon Sep 17 00:00:00 2001 From: Simon <10131203+gaomeng1900@users.noreply.github.com> Date: Wed, 22 Oct 2025 16:38:10 +0800 Subject: [PATCH] fix: action --- .github/workflows/release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca7dbee..be8ea59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,11 +5,13 @@ on: tags: - 'v*' +permissions: + id-token: write # Required for OIDC + contents: read + jobs: release: runs-on: ubuntu-latest - permissions: - contents: write steps: - uses: actions/checkout@v5 @@ -27,13 +29,4 @@ jobs: run: npm run build:lib - name: Publish to npm - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Create GitHub Release - uses: softprops/action-gh-release@v2 - with: - name: Release ${{ github.ref_name }} - draft: false - prerelease: false + run: npm publish \ No newline at end of file