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:
exceptionfactory 2022-11-02 11:37:21 -05:00 committed by Matthew Burgess
parent d237fd228f
commit 4569c597f2
No known key found for this signature in database
GPG Key ID: 05D3DEB8126DAD24
1 changed files with 2 additions and 6 deletions

View File

@ -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