mirror of
https://github.com/gradle/actions.git
synced 2026-04-19 18:12:58 +08:00
Cache npm
This commit is contained in:
@@ -6,6 +6,8 @@ runs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: sources/package-lock.json
|
||||
- name: Build distribution
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
@@ -20,6 +20,8 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
cache-dependency-path: sources/package-lock.json
|
||||
- name: Build
|
||||
run: |
|
||||
npm -v
|
||||
|
||||
Reference in New Issue
Block a user