From 1f0238d797c986c79eacd889c6d61a1f5d65e23e Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 28 Sep 2023 17:15:20 +0200 Subject: [PATCH] ci: update `actions/setup-node` + `actions/checkout` --- .github/workflows/CI.yml | 14 +++----------- .github/workflows/PRODUCTION.yml | 14 +++----------- .github/workflows/STAGING.yml | 14 +++----------- 3 files changed, 9 insertions(+), 33 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 064ae108..162c8785 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,20 +12,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build diff --git a/.github/workflows/PRODUCTION.yml b/.github/workflows/PRODUCTION.yml index ca0a32bb..8ec74391 100644 --- a/.github/workflows/PRODUCTION.yml +++ b/.github/workflows/PRODUCTION.yml @@ -10,20 +10,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 20 - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build diff --git a/.github/workflows/STAGING.yml b/.github/workflows/STAGING.yml index b9ac0990..f727044f 100644 --- a/.github/workflows/STAGING.yml +++ b/.github/workflows/STAGING.yml @@ -10,20 +10,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: 20 - - name: Cache Node.js modules - uses: actions/cache@v2 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- + cache: 'npm' - name: Install dependencies run: npm ci - name: Build