From 02778073f3c829dfe7ee6114682f704f920a1bee Mon Sep 17 00:00:00 2001 From: Matthew RONCHETTO Date: Mon, 20 Jan 2025 14:22:11 -0800 Subject: [PATCH] chore: bump setup-node, remove actions/cache in favour of --- .github/workflows/browserslist.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/browserslist.yml b/.github/workflows/browserslist.yml index 096ce3e0..530c3233 100644 --- a/.github/workflows/browserslist.yml +++ b/.github/workflows/browserslist.yml @@ -13,20 +13,11 @@ jobs: # Setup for commiting using built-in token. See https://github.com/actions/checkout#push-a-commit-using-the-built-in-token git config user.name "github-actions[bot]" git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - uses: actions/setup-node@v1 + - name: "Install Node 22 and cache NPM packages" + uses: actions/setup-node@v4 with: node-version: '22' + cache: 'npm' - run: npm install - name: Update Browserslist database and create PR if applies uses: c2corg/browserslist-update-action@v2.4.0