From 6994f8f1669ea449beafb57da07985e930e687e7 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Tue, 3 Dec 2024 17:45:42 +0900 Subject: [PATCH 1/2] Update GitHub App token variables for release workflow - Switched to using a different GitHub App for `.github/workflows/release.yml` compared to `.github/workflows/license-frontend.yml`. --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 291b7b3a..104ad266 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,8 +33,8 @@ jobs: uses: actions/create-github-app-token@v1 id: app-token with: - app-id: ${{ vars.CI_TRIGGER_APP_ID }} - private-key: ${{ secrets.CI_TRIGGER_APP_PRIVATE_KEY }} + app-id: ${{ vars.CHANGESET_CI_TRIGGER_APP_ID }} + private-key: ${{ secrets.CHANGESET_CI_TRIGGER_APP_PRIVATE_KEY }} - name: Create Release Pull Request or Publish to npm uses: changesets/action@v1.4.9 From a4df5f91fa7365061ee26a557452ade21956c166 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Tue, 3 Dec 2024 17:55:07 +0900 Subject: [PATCH 2/2] Refactor: Create GitHub app token before checkout --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 104ad266..1e18e78a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,6 +20,13 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - name: Create GitHub App Token + uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.CHANGESET_CI_TRIGGER_APP_ID }} + private-key: ${{ secrets.CHANGESET_CI_TRIGGER_APP_PRIVATE_KEY }} + - uses: actions/checkout@v4 with: sparse-checkout: | @@ -29,13 +36,6 @@ jobs: with: working-directory: ${{ env.working-directory }} - - name: Create GitHub App Token - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.CHANGESET_CI_TRIGGER_APP_ID }} - private-key: ${{ secrets.CHANGESET_CI_TRIGGER_APP_PRIVATE_KEY }} - - name: Create Release Pull Request or Publish to npm uses: changesets/action@v1.4.9 with: