From e124de8726dd620183e2c8ef9f8bf463a235dc0d Mon Sep 17 00:00:00 2001 From: KillianG Date: Wed, 30 Oct 2024 17:02:53 +0100 Subject: [PATCH] Update Node.js version to 22 and cache yarn in Docker build workflow --- .github/workflows/docker-build.yaml | 5 +++++ .github/workflows/release.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 0f317beb0..4b3153241 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -17,6 +17,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: yarn + - name: Set up Docker Buildk uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3c1ad614d..0bc23ecd6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,6 +19,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: yarn + # TODO: remove the following step once Oras CLI 0.13.0 bug https://github.com/oras-project/oras/issues/447 is fixed. - name: Downgrade Oras to 0.12.0 run: |