Skip to content

[CI] Re-arrange create-cache.yml (#20829) #2

[CI] Re-arrange create-cache.yml (#20829)

[CI] Re-arrange create-cache.yml (#20829) #2

Workflow file for this run

name: Create CI cache
on:
push:
branches:
- main
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Cache compiled assets
uses: actions/cache@v4
with:
fail-on-cache-miss: false
path: |
public/assets
key: ${{ runner.os }}-compiled-assets-v3-${{ hashFiles('app/assets/(fonts|images|javascripts|stylesheets)/**', 'app/javascript/**', '**/package.json', '**/yarn.lock') }}
restore-keys: ${{ runner.os }}-compiled-assets-v3-
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn
- run: yarn install --immutable
- run: bundle exec rails assets:precompile