Skip to content

Commit 4160998

Browse files
justin808claude
andcommitted
Add generate_packs step before assets:precompile
The precompile check needs to run react_on_rails:generate_packs first to generate the server-bundle-generated.js file that webpack imports. This matches what other CI jobs do before running webpack builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 218b5e7 commit 4160998

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/precompile-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
if ! bundle check --path=vendor/bundle; then
129129
bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
130130
fi
131+
- name: Generate file system-based packs
132+
run: cd react_on_rails/spec/dummy && RAILS_ENV=production bundle exec rake react_on_rails:generate_packs
131133
- name: Run assets:precompile and check output
132134
run: |
133135
cd react_on_rails/spec/dummy

0 commit comments

Comments
 (0)