Skip to content

Commit aa2c805

Browse files
committed
Update prod-assets to include generate_packs
1 parent 3073856 commit aa2c805

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ jobs:
8383
benchmark:
8484
runs-on: ubuntu-latest
8585
env:
86-
REACT_ON_RAILS_PRO_LICENSE: ${{ secrets.REACT_ON_RAILS_PRO_LICENSE }}
86+
SECRET_KEY_BASE: 'dummy-secret-key-for-ci-testing-not-used-in-production'
87+
REACT_ON_RAILS_PRO_LICENSE: ${{ secrets.REACT_ON_RAILS_PRO_LICENSE_V2 }}
8788

8889
steps:
8990
# ============================================
@@ -231,12 +232,8 @@ jobs:
231232
run: |
232233
cd spec/dummy
233234
bundle lock --add-platform 'x86_64-linux'
234-
if ! bundle check --path=vendor/bundle; then
235-
bundle _2.5.4_ install --path=vendor/bundle --jobs=4 --retry=3
236-
fi
237-
238-
- name: generate file system-based packs
239-
run: cd spec/dummy && RAILS_ENV="production" bundle exec rake react_on_rails:generate_packs
235+
bundle config set path vendor/bundle
236+
bundle _2.5.4_ check || bundle _2.5.4_ install --jobs=4 --retry=3
240237
241238
- name: Prepare production assets
242239
if: github.event.inputs.app_version != 'pro_only'

react_on_rails_pro/spec/dummy/bin/prod-assets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ export RAILS_ENV=production
55
if [ "$CI" = "true" ]; then
66
bundle exec bootsnap precompile --gemfile app/ lib/ config/
77
fi
8+
bundle exec rails react_on_rails:generate_packs
89
bundle exec rails assets:precompile

0 commit comments

Comments
 (0)