Skip to content

Commit debe272

Browse files
committed
attempting to fix patches in CI
1 parent 1aa6e88 commit debe272

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/check.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
- name: Install dependencies
3030
run: yarn install
3131

32+
- name: Apply patches
33+
run: |
34+
cd packages/paradigm
35+
bash scripts/patch-if-present.sh
36+
3237
- name: Run typecheck
3338
run: yarn typecheck
3439

packages/paradigm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "biome check .",
1111
"format": "biome check --write .",
1212
"typecheck": "tsc -p tsconfig.json --noEmit",
13-
"postinstall": "patch-package --patch-dir patches --error-on-fail false"
13+
"postinstall": "bash scripts/patch-if-present.sh"
1414
},
1515
"volta": {
1616
"extends": "../../package.json"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
# Only run patch-package if the target packages exist
3+
# This prevents failures during CI when yarn runs postinstall before all deps are hoisted
4+
5+
# Try to apply patches, but don't fail if packages aren't installed yet
6+
patch-package --patch-dir patches 2>&1 | grep -v "Error: Patch file found for package" || true
7+
8+
# Always exit successfully so yarn install can continue
9+
exit 0

0 commit comments

Comments
 (0)