From 4d3231c611914dbf0342fe211cc209c236c064f6 Mon Sep 17 00:00:00 2001 From: Kylee Tilley Date: Sat, 8 Mar 2025 03:39:03 -0600 Subject: [PATCH] Update workflows to improve npm usage - Better cache pattern - Use npm version file --- .github/workflows/build-artifacts.yml | 4 ++-- .github/workflows/pr.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-artifacts.yml b/.github/workflows/build-artifacts.yml index 6a6a0d2..03e6eb5 100644 --- a/.github/workflows/build-artifacts.yml +++ b/.github/workflows/build-artifacts.yml @@ -49,8 +49,8 @@ jobs: - uses: actions/setup-node@v4 with: cache: npm - cache-dependency-path: vsc/package-lock.json - node-version: 20 + cache-dependency-path: "**/package-lock.json" + node-version-file: .nvmrc - name: Install just uses: taiki-e/install-action@v2 with: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ee04e28..4fb7668 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -16,8 +16,8 @@ jobs: - uses: actions/setup-node@v4 with: cache: npm - cache-dependency-path: vsc/package-lock.json - node-version: 20 + cache-dependency-path: "**/package-lock.json" + node-version-file: .nvmrc - name: Install just uses: taiki-e/install-action@v2 with: