Commit 70a015e
Fix CI failures: Build packages before yalc publish
The CI was failing with module resolution errors because packages were being
published to yalc before building them. This meant the lib/ directories were
empty or stale, causing webpack to fail when trying to import from the
published packages.
## Root Cause
Workflows were running `yalc publish` immediately after `yarn install`, but
before building the TypeScript packages. This published empty/stale lib/
directories to yalc, which caused:
- Missing exports errors (./pageLifecycle, ./context, etc.)
- webpack build failures in example apps
- Integration test failures
## Fix
Added `yarn build` step before `yalc publish` in all workflows:
- examples.yml: Build all workspace packages before publishing
- integration-tests.yml: Build react-on-rails package (2 occurrences)
- lint-js-and-ruby.yml: Build react-on-rails package
## Verification
The build step compiles TypeScript to JavaScript and populates lib/ with:
- All exported modules (context.js, pageLifecycle.js, etc.)
- Correct package.json exports definitions
- Complete type definitions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent fa76225 commit 70a015e
File tree
3 files changed
+10
-0
lines changed- .github/workflows
3 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| 242 | + | |
| 243 | + | |
240 | 244 | | |
241 | 245 | | |
242 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
0 commit comments