From add860b12fb87e91f30c25038a5b5ba03226240e Mon Sep 17 00:00:00 2001 From: Lachlan Heywood Date: Tue, 14 Jan 2025 17:36:01 -0500 Subject: [PATCH] fix: move app checkout step to the front and use token for checkout Signed-off-by: Lachlan Heywood --- .github/workflows/ci_release.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 8dc4fa7..6661cf8 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -32,17 +32,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - - - name: Setup Node, Yarn, and Turbo - uses: ./.github/actions/ts-setup - with: - npm-token: ${{ secrets.NPM_TOKEN }} - - - name: Build - run: yarn build - - name: Get App Token id: app-token uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 @@ -62,6 +51,19 @@ jobs: git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' git config --global format.signOff true + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + token: ${{ steps.app-token.outputs.token }} + + - name: Setup Node, Yarn, and Turbo + uses: ./.github/actions/ts-setup + with: + npm-token: ${{ secrets.NPM_TOKEN }} + + - name: Build + run: yarn build + - name: Version or Publish id: changesets uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308