Skip to content

Cache Renew

Cache Renew #35

Workflow file for this run

name: Cache Renew
on:
workflow_dispatch:
schedule:
# Runs every Monday at 00:00 UTC
- cron: "0 0 * * 1"
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: main
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24.x
- name: Cache node modules
id: cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: node_modules
key: ${{ runner.os }}-24.x-node-modules-hash-${{ hashFiles('yarn.lock') }}
- name: Install deps
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Save cache
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: node_modules
key: ${{ runner.os }}-24.x-node-modules-hash-${{ hashFiles('yarn.lock') }}