From 8c4b2378532e2c360cf9ab9650676517b491a361 Mon Sep 17 00:00:00 2001 From: Dylan Gattey Date: Sun, 1 Oct 2023 14:56:27 -0700 Subject: [PATCH 1/2] [Releases] fixing syntax for env variables --- .github/workflows/autochecks.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/dependabot.yml | 5 +++++ .github/workflows/release.yml | 6 +++--- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/autochecks.yml b/.github/workflows/autochecks.yml index bd8c5ade..e42255ab 100644 --- a/.github/workflows/autochecks.yml +++ b/.github/workflows/autochecks.yml @@ -10,6 +10,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + jobs: autocheck: timeout-minutes: 6 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4d0f717a..7e5a0719 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,6 +21,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + jobs: analyze: name: Analyze diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 9387a324..db604823 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -1,5 +1,10 @@ name: Dependabot Automerge on: pull_request + +env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + jobs: worker: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d847b836..fad70c7a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,14 +59,14 @@ jobs: run: npm install --global vercel@latest - name: Pull Vercel Environment Information if: ${{ steps.latest-version-tag.outputs.tag != '' }} - run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} + run: vercel pull --yes --environment=production --token=${VERCEL_TOKEN} - name: Build Project Artifacts with latest version if: ${{ steps.latest-version-tag.outputs.tag != '' }} run: | echo "Latest tag: ${LATEST_TAG}" - vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" -e NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" + vercel build --prod --token=${VERCEL_TOKEN} NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" -e NEXT_PUBLIC_APP_VERSION="${LATEST_TAG}" env: LATEST_TAG: ${{ steps.latest-version-tag.outputs.tag }} - name: Deploy Project Artifacts to Vercel if: ${{ steps.latest-version-tag.outputs.tag != '' }} - run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} + run: vercel deploy --prebuilt --prod --token=${VERCEL_TOKEN} From 612428585d7980a8f8989d8afda55432b05efc44 Mon Sep 17 00:00:00 2001 From: Dylan Gattey Date: Sun, 1 Oct 2023 15:00:05 -0700 Subject: [PATCH 2/2] add caching to build oops --- turbo.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/turbo.json b/turbo.json index 542ac972..90fe1e96 100644 --- a/turbo.json +++ b/turbo.json @@ -54,7 +54,8 @@ "persistent": true }, "build": { - "dependsOn": ["^build", "topo", "lint", "lint:types", "format"] + "dependsOn": ["^build", "topo", "lint", "lint:types", "format"], + "outputs": [".next/**", "!.next/cache/**"] }, "build:analyze": { "dependsOn": ["^build", "topo"],