From 76a2ac573729d1236133be00118b2332993fa838 Mon Sep 17 00:00:00 2001 From: Alexey Ryabov Date: Mon, 27 Nov 2023 12:22:38 +0300 Subject: [PATCH] ci: use PAT for actions with GitHub We need to use personal access token (PAT) to properly trigger workflows when we merge branches and push via CI. --- .github/workflows/release-main.yml | 1 + .github/workflows/release.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml index da7966f..3a46141 100644 --- a/.github/workflows/release-main.yml +++ b/.github/workflows/release-main.yml @@ -19,6 +19,7 @@ jobs: with: fetch-depth: 0 ref: main + token: ${{ secrets.GITHUB_PAT }} - name: Merge canary into main run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 940c43e..4552fec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: - name: Release run: pnpm semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} sync-canary: @@ -34,6 +34,7 @@ jobs: with: fetch-depth: 0 ref: canary + token: ${{ secrets.GITHUB_PAT }} - name: Back-merge main into canary run: |