diff --git a/.github/workflows/create-cache.yml b/.github/workflows/create-cache.yml index 4f78676eb..130e8e2a3 100644 --- a/.github/workflows/create-cache.yml +++ b/.github/workflows/create-cache.yml @@ -14,12 +14,7 @@ jobs: - uses: ruby/setup-ruby@v1 with: bundler-cache: true - - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - cache: yarn - - run: yarn install --immutable - - name: cache compiled assets exist + - name: Cache compiled assets uses: actions/cache@v4 with: fail-on-cache-miss: false @@ -27,4 +22,9 @@ jobs: 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