From 6cf8d0f3cc605ddc055de186b09d7a423e6a4f99 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Fri, 15 Mar 2024 00:27:19 +0100 Subject: [PATCH] ci: use cache feature of @actions/setup-node --- .github/workflows/test-and-release.yaml | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test-and-release.yaml b/.github/workflows/test-and-release.yaml index 5ce28040..e99f39a8 100644 --- a/.github/workflows/test-and-release.yaml +++ b/.github/workflows/test-and-release.yaml @@ -57,12 +57,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20.x" - - - name: Keep npm cache around to speed up installs - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + cache: "npm" - name: Install dependencies run: npm ci --no-audit @@ -130,7 +125,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20.x" - + cache: "npm" - name: Create resource group id: resource-group run: | @@ -178,7 +173,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20.x" - + cache: "npm" - name: Create integration resources id: resources run: | @@ -255,12 +250,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20.x" - - - name: Keep npm cache around to speed up installs - uses: actions/cache@v4 - with: - path: ~/.npm - key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }} + cache: "npm" - name: Install dependencies run: npm ci --no-audit @@ -359,12 +349,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: "20.x" - - - name: Keep npm cache around to speed up installs - uses: actions/cache@v4 - with: - path: ~/.npm - key: build-${{ hashFiles('**/package-lock.json') }} + cache: "npm" - name: Install dependencies run: npm ci --no-audit