Skip to content

Commit 11c9abb

Browse files
committed
fix(ci): guard install step to verify sfw is installed
Fails fast with a clear error if sfw binary is not set up before pnpm install runs.
1 parent c6703e7 commit 11c9abb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/setup-and-install.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,9 @@ jobs:
163163
- name: Install dependencies
164164
shell: bash
165165
working-directory: ${{ inputs.working-directory }}
166-
run: pnpm install --loglevel error
166+
run: |
167+
if [ -z "$SFW_BIN" ] || [ ! -x "$SFW_BIN" ]; then
168+
echo "Error: sfw is not set up — run the setup action first" >&2
169+
exit 1
170+
fi
171+
pnpm install --loglevel error

0 commit comments

Comments
 (0)