Skip to content

Commit

Permalink
chore(ci): add turborepo environment variables (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Oct 9, 2023
1 parent 4362934 commit 7ae8dfd
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 12 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ on:
- main
- v3

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
# Lint the project
lint:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
steps:
- name: checkout code repository
Expand Down Expand Up @@ -45,7 +49,7 @@ jobs:

# Typecheck the project
typecheck:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
steps:
- name: checkout code repository
Expand All @@ -61,7 +65,7 @@ jobs:

# Unit test
unit_test:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
steps:
- name: checkout code repository
Expand Down Expand Up @@ -92,7 +96,7 @@ jobs:

# Build the project and run tests on built files.
build_test:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -118,7 +122,7 @@ jobs:

# Check that package sizes are within their boundaries
size_check:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
steps:
- name: checkout code repository
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ on:
- v1
- main

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
deploy_docs:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/v1' || github.ref == 'refs/heads/main' || github.event.pull_request

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
branches:
- main

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
# Run the e2e playwright tests
playwright:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/label-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: label pr
on:
- pull_request_target

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
labeler:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
issue_comment:
types: [created]

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
publish_comment:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:
branches: [v1]
types: [completed]

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

concurrency: publish_workflow

jobs:
# Publish the public packages to npm
npm:
if: github.event.workflow_run.conclusion == 'success'
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:
branches: [v3]
types: [completed]

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

concurrency: publish_workflow

jobs:
# Publish the public packages to npm
npm:
if: github.event.workflow_run.conclusion == 'success'
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ on:
branches: [main]
types: [completed]

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

concurrency: publish_workflow

jobs:
# Publish the public packages to npm
npm:
if: github.event.workflow_run.conclusion == 'success'
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ on:
- v1
- main

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
deploy_docs:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ on:
- v1
- v3

env:
TURBO_TOKEN: ${{ secrets.VERCEL_STORYBOOK_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}

jobs:
# Update package versions with changesets.
version:
timeout-minutes: 30
timeout-minutes: 50
runs-on: ubuntu-latest
if: ${{ false == contains(github.ref, 'changeset') && github.repository == 'remirror/remirror' }}
steps:
Expand Down

1 comment on commit 7ae8dfd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉 Published on https://remirror.io as production
🚀 Deployed on https://65244bcfd9212423008dcb66--remirror.netlify.app

Please sign in to comment.