Skip to content

Commit bb730f2

Browse files
authored
Hotfix: Fix semantic-release workflow (#47)
## Summary The postinstall script (bun run scripts/package/patch-native-modules.ts) patches native modules for cross-platform binary builds. The semantic-release workflow uses npm ci, which triggers this script. However, bun isn't installed in that workflow, and the patching is irrelevant for semantic-release (it only bumps versions and creates tags). Adding `--ignore-scripts` to npm ci skips all lifecycle scripts in the semantic-release workflow. Other workflows (ci.yaml, release.yaml) are unaffected as they use bun install.
2 parents dab1563 + d35daee commit bb730f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/semantic-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
cache: "npm"
4141

4242
- name: "Install dependencies"
43-
run: "npm ci"
43+
run: "npm ci --ignore-scripts"
4444

4545
- name: "Show current version"
4646
run: |

0 commit comments

Comments
 (0)