1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-24 11:55:50 +01:00

consolidate node_modules cache

This commit is contained in:
Kyle Spearrin 2020-09-25 10:30:13 -04:00
parent afd501b985
commit 6433178175

View File

@ -57,18 +57,13 @@ jobs:
shell: pwsh shell: pwsh
- name: Cache node_modules - name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: node_modules path: |
key: node-modules-lin-${{ hashFiles('package-lock.json') }} ~/.npm
~/.electron-gyp
- name: Cache electron-gyp node_modules
id: cache-electron-gyp key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
uses: actions/cache@v2
with:
path: ~/.electron-gyp
key: electron-gyp-lin-${{ hashFiles('package-lock.json') }}
- name: Install Node dependencies - name: Install Node dependencies
run: npm install run: npm install
@ -134,18 +129,13 @@ jobs:
shell: pwsh shell: pwsh
- name: Cache node_modules - name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: node_modules path: |
key: node-modules-win-${{ hashFiles('package-lock.json') }} ~/.npm
~/.electron-gyp
- name: Cache electron-gyp node_modules
id: cache-electron-gyp key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
uses: actions/cache@v2
with:
path: ~/.electron-gyp
key: electron-gyp-win-${{ hashFiles('package-lock.json') }}
- name: Install Node dependencies - name: Install Node dependencies
run: npm install run: npm install
@ -241,18 +231,13 @@ jobs:
shell: pwsh shell: pwsh
- name: Cache node_modules - name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: node_modules path: |
key: node-modules-mac-${{ hashFiles('package-lock.json') }} ~/.npm
~/.electron-gyp
- name: Cache electron-gyp node_modules
id: cache-electron-gyp key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
uses: actions/cache@v2
with:
path: ~/.electron-gyp
key: electron-gyp-mac-${{ hashFiles('package-lock.json') }}
- name: Install Node dependencies - name: Install Node dependencies
run: npm install run: npm install