Skip to content

Commit

Permalink
improve analyse-changed-packages job
Browse files Browse the repository at this point in the history
by only install turbo globally

Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Oct 8, 2023
1 parent b22476c commit f71524f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ jobs:
node-version: ${{ steps.node_version.outputs.version }}
cache: 'yarn'

- run: yarn install
- run: yarn global add turbo

- name: Identifying Changed Bap-Services
id: changed-packages
run: |
turboChanges=$(node_modules/.bin/turbo run build --dry-run=json --since=${{ env.SINCE }})
turboChanges=$(turbo run build --dry-run=json --since=${{ env.SINCE }})
changedPackages=$(node -e "const results = $turboChanges.tasks.map((task) => ({ package: task.package, directory: task.directory })); process.stdout.write(JSON.stringify(results));")
echo "$changedPackages"
echo "changedPackages=$changedPackages" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit f71524f

Please sign in to comment.