From 2f631713ca32c5465e5205eaf37c7602b4cd852b Mon Sep 17 00:00:00 2001 From: Gerald Date: Fri, 6 Oct 2023 13:59:52 +0200 Subject: [PATCH] fix: update semantic release GITHUB_TOKEN with PAT --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dbcbddd..be189af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - uses: pnpm/action-setup@v2 - name: Install pnpm + name: install-pnpm id: pnpm-install with: version: 8 @@ -24,7 +26,9 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm run build - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: semantic-release run: npx semantic-release --debug true --dry-run false + env: + GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}