From 8f1e2e02865c42348f9baddbbaafb1841dce610a Mon Sep 17 00:00:00 2001 From: Peter Mescalchin Date: Tue, 12 Apr 2022 04:36:07 +1000 Subject: [PATCH] Bump GitHub actions `actions/checkout` and `actions/setup-node` (#763) * Bump GitHub actions * Bump Node.js version used to `16.x` in workflows * Bump `actions/upload-artifact@v3` --- .github/workflows/check-dist.yml | 13 +++++-------- .github/workflows/codeql.yml | 4 ++-- .github/workflows/licensed.yml | 2 +- .github/workflows/workflow.yml | 16 ++++++++-------- README.md | 4 ++-- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 16c2117..00f5036 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -22,16 +22,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Set Node.js 12.x - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - name: Setup Node.js 16.x + uses: actions/setup-node@v3 with: - node-version: 12.x - + node-version: 16.x - name: Install dependencies run: npm ci - - name: Rebuild the dist/ directory run: npm run build @@ -45,7 +42,7 @@ jobs: id: diff # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: dist diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9771ca0..8a4f83c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. @@ -24,7 +24,7 @@ jobs: # the head of the pull request instead of the merge commit. - run: git checkout HEAD^2 if: ${{ github.event_name == 'pull_request' }} - + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index 4c1dfe5..04af62a 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest name: Check licenses steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - run: npm ci - name: Install licensed run: | diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index bab85af..48f1ccb 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -24,11 +24,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 - - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/checkout@v3 + - name: Setup Node.js 16.x + uses: actions/setup-node@v3 with: - node-version: '12.x' + node-version: 16.x - name: Determine npm cache directory id: npm-cache run: | @@ -57,7 +57,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Generate files in working directory shell: bash run: __tests__/create-cache-files.sh ${{ runner.os }} test-cache @@ -80,7 +80,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Restore cache uses: ./ with: @@ -110,7 +110,7 @@ jobs: https_proxy: http://squid-proxy:3128 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Generate files run: __tests__/create-cache-files.sh proxy test-cache - name: Save cache @@ -133,7 +133,7 @@ jobs: https_proxy: http://squid-proxy:3128 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Restore cache uses: ./ with: diff --git a/README.md b/README.md index 9435546..a4c8f1b 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Cache Primes id: cache-primes @@ -162,7 +162,7 @@ Using the `cache-hit` output, subsequent steps (such as install or build) can be Example: ```yaml steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: actions/cache@v3 id: cache