Add release/debug to nw.js cache key (#3125)

add prefix too to this and other cache keys
10.9-maintenance
Míguel Ángel Mulero Martínez 2022-12-08 22:01:57 +01:00 committed by GitHub
parent 059ae819ce
commit 7d0cf82f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: node_modules/ path: node_modules/
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@ -65,13 +65,13 @@ jobs:
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: cache/ path: cache/
key: ${{ runner.os }}-${{ hashFiles('gulpfile.js') }} key: nwjs-${{ inputs.debug_build && 'debug' || 'release' }}-${{ runner.os }}-${{ hashFiles('gulpfile.js') }}
- name: Cache node_modules - name: Cache node_modules
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: node_modules/ path: node_modules/
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} key: node_modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3