mirror of
https://github.com/actions/cache.git
synced 2025-06-28 04:04:14 +00:00
Update .github/workflows/npm-grunt.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Nodoubtz <53144580+nodoubtz@users.noreply.github.com>
This commit is contained in:
parent
63223f8e47
commit
a39130efef
1 changed files with 14 additions and 0 deletions
14
.github/workflows/npm-grunt.yml
vendored
14
.github/workflows/npm-grunt.yml
vendored
|
@ -22,7 +22,21 @@ jobs:
|
|||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Restore node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
npm install
|
||||
grunt
|
||||
|
||||
- name: Save node_modules cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue