From 88a33f899751b3c5dc72b887592ec586e366018a Mon Sep 17 00:00:00 2001 From: Chris Campbell Date: Wed, 14 Feb 2024 12:56:06 -0800 Subject: [PATCH] build: update actions in workflows to use Node 20 (#428) Fixes #427 --- .github/workflows/build.yaml | 26 +++++++++++++------------- .github/workflows/release.yaml | 12 +++++------- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 170763d6..02c9cb8c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -50,17 +50,17 @@ jobs: git config --global core.eol lf - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 # The pnpm caching strategy in the following steps is based on: # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 8 @@ -76,7 +76,7 @@ jobs: run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Enable pnpm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -115,17 +115,17 @@ jobs: git config --global core.eol lf - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 # The pnpm caching strategy in the following steps is based on: # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 8 @@ -141,7 +141,7 @@ jobs: run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Enable pnpm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -180,23 +180,23 @@ jobs: git config --global core.eol lf - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Enable Emscripten cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{env.EM_DIR}} key: emsdk-app-${{env.EM_VERSION}}-${{env.EM_KEY}} - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 # The pnpm caching strategy in the following steps is based on: # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time - name: Install pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v3.0.0 with: version: 8 @@ -212,7 +212,7 @@ jobs: run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Enable pnpm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 291f47b6..ce6086ad 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Run release-please - uses: GoogleCloudPlatform/release-please-action@v3 + uses: GoogleCloudPlatform/release-please-action@v4 id: release with: # Note that we need to use a custom token here because events triggered @@ -27,21 +27,19 @@ jobs: # release-please action to trigger the `build` workflow when it pushes # to a `release-please` branch; using a custom token here makes it work. token: ${{ secrets.GH_ACCESS_TOKEN }} - command: manifest - monorepo-tags: true - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 # The pnpm caching strategy in the following steps is based on: # https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time - name: Install pnpm - uses: pnpm/action-setup@v2 + uses: pnpm/action-setup@v3 with: version: 8 @@ -50,7 +48,7 @@ jobs: run: echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT - name: Enable pnpm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}