From 879aadf0bddbfaea03f0c469985019783273ddff Mon Sep 17 00:00:00 2001 From: Dennis Kigen Date: Wed, 6 Sep 2023 20:35:46 +0300 Subject: [PATCH] (chore) Reuse env variables for turbo tasks (#73) --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73af817d..9b60e11f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,10 @@ on: jobs: build: runs-on: ubuntu-latest + env: + TURBO_API: 'http://127.0.0.1:9080' + TURBO_TOKEN: ${{ secrets.TURBO_SERVER_TOKEN }} + TURBO_TEAM: ${{ github.repository_owner }} steps: - uses: actions/checkout@v3 @@ -29,13 +33,13 @@ jobs: server-token: ${{ secrets.TURBO_SERVER_TOKEN }} - name: Run lint - run: yarn turbo lint --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}" + run: yarn turbo lint --color - name: Run tests - run: yarn turbo test --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}" + run: yarn turbo test --color - name: Run build - run: yarn turbo build:lib --color --concurrency=5 --api="http://127.0.0.1:9080" --token="${{ secrets.TURBO_SERVER_TOKEN }}" --team="${{ github.repository_owner }}" + run: yarn turbo build:lib --color --concurrency=5 pre_release: runs-on: ubuntu-latest