aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2021-07-19 18:38:49 +0300
committerXhmikosR <[email protected]>2021-07-21 16:20:01 +0300
commit70267da28e626a23eae8f35ca0c93eacc7ae6513 (patch)
tree6c1d4ed14b39dd98c7a507b1b410f4c77c7c0600
parent9cf31d9f8e54aa605d0982f372e3c830c598baec (diff)
downloadbootstrap-70267da28e626a23eae8f35ca0c93eacc7ae6513.tar.xz
bootstrap-70267da28e626a23eae8f35ca0c93eacc7ae6513.zip
CI: make use of the `actions/setup-node`'s `cache` option (#34453)
-rw-r--r--.github/workflows/browserstack.yml9
-rw-r--r--.github/workflows/bundlewatch.yml9
-rw-r--r--.github/workflows/css.yml9
-rw-r--r--.github/workflows/docs.yml9
-rw-r--r--.github/workflows/js.yml9
-rw-r--r--.github/workflows/lint.yml9
6 files changed, 6 insertions, 48 deletions
diff --git a/.github/workflows/browserstack.yml b/.github/workflows/browserstack.yml
index bdbc16089..ffa594a77 100644
--- a/.github/workflows/browserstack.yml
+++ b/.github/workflows/browserstack.yml
@@ -21,14 +21,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
-
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ cache: npm
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/bundlewatch.yml b/.github/workflows/bundlewatch.yml
index f4e9106ff..c62aad396 100644
--- a/.github/workflows/bundlewatch.yml
+++ b/.github/workflows/bundlewatch.yml
@@ -20,14 +20,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
-
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ cache: npm
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/css.yml b/.github/workflows/css.yml
index 1f394c65e..48f11d459 100644
--- a/.github/workflows/css.yml
+++ b/.github/workflows/css.yml
@@ -22,14 +22,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
-
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ cache: npm
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index badaad744..cc5f4bd6d 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -22,17 +22,10 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
+ cache: npm
- run: java -version
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
-
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/js.yml b/.github/workflows/js.yml
index 10d94f6fd..266b1576d 100644
--- a/.github/workflows/js.yml
+++ b/.github/workflows/js.yml
@@ -27,14 +27,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
-
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ cache: npm
- name: Install npm dependencies
run: npm ci
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index f4c288ec7..153ad6f22 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -22,14 +22,7 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: "${{ env.NODE }}"
-
- - name: Set up npm cache
- uses: actions/cache@v2
- with:
- path: ~/.npm
- key: ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
- restore-keys: |
- ${{ runner.os }}-node-${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
+ cache: npm
- name: Install npm dependencies
run: npm ci