From d67708a78f8b4a69f5a9eefa6b109c264dcf2f6d Mon Sep 17 00:00:00 2001 From: Manuel Ruck Date: Sun, 8 Oct 2023 17:09:22 +0200 Subject: [PATCH] skip build and push for private packages Signed-off-by: Manuel Ruck --- .github/workflows/build-and-push.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 6b8e5d134..f7d5c24c5 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -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));")