From 0693207788022b28fae0e31e2f8d71142993f566 Mon Sep 17 00:00:00 2001 From: Sengimu Date: Sun, 1 Dec 2024 19:58:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9github=20actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/node.js.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 46795a3..39a3791 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -38,9 +38,6 @@ jobs: - name: Create dist.zip run: zip -r dist.zip dist/ - - name: Print PAT token (for debugging, only in private environment) - run: echo "${{ secrets.PAT }}" - - name: Create Release id: create_release uses: actions/create-release@v1 @@ -50,7 +47,7 @@ jobs: body: "Release created from commit ${{ github.sha }}" prerelease: true env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload dist to Release uses: actions/upload-release-asset@v1 @@ -59,3 +56,5 @@ jobs: asset_path: ./dist.zip asset_name: dist.zip asset_content_type: application/zip + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}