Skip to content

Commit

Permalink
fix: [Releases] fixing syntax for env variables (#406)
Browse files Browse the repository at this point in the history
Followup to #405 

## What changed? Why?
I think env syntax was off and turbo tokens and team were added to all
workflows
  • Loading branch information
dgattey committed Oct 1, 2023
2 parents 0b01955 + 6124285 commit 04e34f0
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/autochecks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

1 comment on commit 04e34f0

@vercel
Copy link

@vercel vercel bot commented on 04e34f0 Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dg – ./

dg-dgattey.vercel.app
dylangattey.com
dg.vercel.app
dg-git-main-dgattey.vercel.app

Please sign in to comment.