Skip to content

Commit a358195

Browse files
committed
Update prod-assets to include generate_packs
1 parent 1ee85ef commit a358195

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
@@ -88,7 +88,8 @@ jobs:
8888
benchmark:
8989
runs-on: ubuntu-latest
9090
env:
91-
REACT_ON_RAILS_PRO_LICENSE: ${{ secrets.REACT_ON_RAILS_PRO_LICENSE }}
91+
SECRET_KEY_BASE: 'dummy-secret-key-for-ci-testing-not-used-in-production'
92+
REACT_ON_RAILS_PRO_LICENSE: ${{ secrets.REACT_ON_RAILS_PRO_LICENSE_V2 }}
9293

9394
steps:
9495
# ============================================
@@ -236,12 +237,8 @@ jobs:
236237
run: |
237238
cd spec/dummy
238239
bundle lock --add-platform 'x86_64-linux'
239-
if ! bundle check --path=vendor/bundle; then
240-
bundle _2.5.4_ install --path=vendor/bundle --jobs=4 --retry=3
241-
fi
242-
243-
- name: generate file system-based packs
244-
run: cd spec/dummy && RAILS_ENV="production" bundle exec rake react_on_rails:generate_packs
240+
bundle config set path vendor/bundle
241+
bundle _2.5.4_ check || bundle _2.5.4_ install --jobs=4 --retry=3
245242
246243
- name: Prepare production assets
247244
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)