Skip to content

Update refresh-cache.yml #3

Update refresh-cache.yml

Update refresh-cache.yml #3

Workflow file for this run

name: osu-wiki continuous integration
on:
push:
branches:
- master
jobs:
cache-node-modules:
name: refresh node_modules cache
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: '.'
- name: check node_modules cache
id: cache-node-modules
uses: actions/cache/restore@v3
with:
lookup-only: true
key: node-modules-${{ hashFiles('package.json', 'package-lock.json') }}-${{ steps.setup-node.outputs.node-version }}
- name: 'if cache outdated: install node_modules'
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: 'if cache outdated: save cache'
if: steps.cache-node-modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package.json', 'package-lock.json') }}-${{ steps.setup-node.outputs.node-version }}