Skip to content

Commit

Permalink
chore(repo): Add bundlewatch env vars to turbo.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis committed Jun 6, 2024
1 parent 4b4a352 commit a087f59
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:

env:
TURBO_SUMMARIZE: false
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}

steps:
- name: Checkout Repo
Expand Down Expand Up @@ -59,6 +57,13 @@ jobs:

- name: Check size using bundlewatch
run: npx turbo bundlewatch $TURBO_ARGS --only
env:
BUNDLEWATCH_GITHUB_TOKEN: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}
CI_REPO_OWNER: ${{ vars.REPO_OWNER }}
CI_REPO_NAME: ${{ vars.REPO_NAME }}
CI_COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
CI_BRANCH: ${{ github.ref }}
CI_BRANCH_BASE: refs/heads/main

- name: Lint packages using publint
run: npx turbo lint:publint $TURBO_ARGS --only
Expand Down
8 changes: 7 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
"VERCEL",
"VITE_CLERK_*",
"EXPO_PUBLIC_CLERK_*",
"REACT_APP_CLERK_*"
"REACT_APP_CLERK_*",
"CI_REPO_OWNER",
"CI_REPO_NAME",
"CI_COMMIT_SHA",
"CI_BRANCH",
"CI_BRANCH_BASE",
"BUNDLEWATCH_GITHUB_TOKEN"
],
"globalPassThroughEnv": ["AWS_SECRET_KEY", "GITHUB_TOKEN"],
"pipeline": {
Expand Down

0 comments on commit a087f59

Please sign in to comment.