Skip to content

Commit 4ccd0f1

Browse files
authored
ci: sync with netresearch/.github templates/go-app (#562)
Auto-opened by sync-template.sh. Brings this repo back into alignment with the canonical `go-app` template in `netresearch/.github`. To keep any diverging files, add their paths to `.github/template.yaml`'s `intentional-drift:` list before merging — otherwise the next sync run will revert them.
2 parents 02c34fe + 2ff4bf1 commit 4ccd0f1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ jobs:
7272
ref: ${{ needs.create-release.outputs.tag }}
7373
release-tag: ${{ needs.create-release.outputs.tag }}
7474
sbom: true
75-
setup-bun: ${{ hashFiles('package.json') != '' }}
75+
# setup-bun runs unconditionally. `hashFiles()` in the caller's `with:`
76+
# is evaluated BEFORE the reusable workflow's checkout, so the caller
77+
# workspace is empty and any guard would have always returned false.
78+
# The bun install/run commands below are `-f package.json`-gated, so
79+
# non-frontend repos (ofelia, raybeam) pay only the ~10s Bun install
80+
# overhead per matrix entry — no actual bun work happens.
81+
setup-bun: true
7682
pre-build-command: |
7783
if [ -f package.json ]; then
7884
bun install --frozen-lockfile

0 commit comments

Comments
 (0)