Cache asset compilation results

pull/30868/head
Matt Jankowski 2024-06-27 16:29:22 -04:00
parent a5134f2695
commit 6c5b8c2c32
1 changed files with 16 additions and 3 deletions

View File

@ -41,11 +41,24 @@ jobs:
with:
onlyProduction: 'true'
- name: Cache assets from compilation
uses: actions/cache@v4
with:
path: |
public/assets
public/packs
public/packs-test
tmp/cache/webpacker
key: ${{ matrix.mode }}-assets-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
restore-keys: |
${{ matrix.mode }}-assets-${{ runner.os }}-${{ github.ref_name }}-${{ github.sha }}
${{ matrix.mode }}-assets-${{ runner.os }}-${{ github.ref_name }}
${{ matrix.mode }}-assets-${{ runner.os }}-main
${{ matrix.mode }}-assets-${{ runner.os }}
- name: Precompile assets
# Previously had set this, but it's not supported
# export NODE_OPTIONS=--openssl-legacy-provider
run: |-
./bin/rails assets:precompile
bin/rails assets:precompile
- name: Archive asset artifacts
run: |