Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2021-10-28 22:39:07 +0300
committerGar <gar+gh@danger.computer>2021-11-03 18:45:47 +0300
commit2b5d01471a42d81e73efc1620b185f5b1a9b815a (patch)
tree0a2b445cdb978bead52bf1f70c21e3d30b448b16 /.github
parentf7a8118c79b5c8d5b69c47c1bdeafe472cff06c6 (diff)
chore(ci): update setup-node action to v2 and enable cache
PR-URL: https://github.com/npm/cli/pull/3958 Credit: @nlf Close: #3958 Reviewed-by: @wraithgar
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml18
1 files changed, 12 insertions, 6 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5a13cadb0..3fba2a3ba 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,9 +15,10 @@ jobs:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: 14.x
+ cache: npm
- name: Install dependencies
run: |
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -32,9 +33,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: 14.x
+ cache: npm
- name: Install dependencies
run: |
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -50,9 +52,10 @@ jobs:
# Checkout the npm/cli repo
- uses: actions/checkout@v2
- name: Use Node.js 14.x
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: 14.x
+ cache: npm
- name: Install dependencies
run: |
node ./bin/npm-cli.js install --ignore-scripts --no-audit
@@ -86,9 +89,10 @@ jobs:
# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
+ cache: npm
# Run the installer script
- name: Install dependencies
@@ -128,9 +132,10 @@ jobs:
# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
+ cache: npm
# Run the installer script
- name: Install dependencies
@@ -169,9 +174,10 @@ jobs:
# Installs the specific version of Node.js
- name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@v1
+ uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
+ cache: npm
# Run the installer script
- name: Install dependencies