Skip to content

Commit

Permalink
skip build and push for private packages
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <[email protected]>
  • Loading branch information
Manuel Ruck committed Oct 8, 2023
1 parent 8e5f648 commit d67708a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: |
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));")
changedPackages=(node -e "const results = $changedPackages.filter(({package}) => !package.private); process.stdout.write(JSON.stringify(results));"
echo "$changedPackages"
echo "changedPackages=$changedPackages" >> $GITHUB_OUTPUT
changed=$(node -e "const results = $changedPackages.map(({package}) => package); process.stdout.write(JSON.stringify(results));")
Expand Down

0 comments on commit d67708a

Please sign in to comment.