mirror of https://github.com/apache/nifi.git
NIFI-10749 Corrected Windows NPM Cache for GitHub Workflow
Signed-off-by: Matthew Burgess <mattyb149@apache.org> This closes #6616
This commit is contained in:
parent
d237fd228f
commit
4569c597f2
|
@ -261,16 +261,12 @@ jobs:
|
||||||
git config --global core.longpaths true
|
git config --global core.longpaths true
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Get NPM Cache Directory
|
|
||||||
id: npm-cache-directory
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=directory::$(npm config get cache)"
|
|
||||||
- name: Cache Node Modules
|
- name: Cache Node Modules
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.npm-cache-directory.outputs.directory }}
|
~\AppData\npm-cache
|
||||||
**/node_modules
|
**\node_modules
|
||||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||||
- name: Set up Java 8
|
- name: Set up Java 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
|
|
Loading…
Reference in New Issue