Skip to content

Commit

Permalink
build: update actions in workflows to use Node 20 (#428)
Browse files Browse the repository at this point in the history
Fixes #427
  • Loading branch information
chrispcampbell authored Feb 14, 2024
1 parent a46b0ed commit 88a33f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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') }}
Expand Down Expand Up @@ -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

Expand All @@ -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') }}
Expand Down Expand Up @@ -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

Expand All @@ -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') }}
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -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') }}
Expand Down

0 comments on commit 88a33f8

Please sign in to comment.