From ed75644dd6ee683f5e25c2b4979f472d445de504 Mon Sep 17 00:00:00 2001 From: Oskari Porkka Date: Thu, 21 Mar 2024 10:29:28 +0100 Subject: [PATCH] Bump build actions to v4 (#240) * Bump build actions to v4 Bumped the build actions to v4 that uses Node20 by default, to avoid warnings of using outdated Node versions in actions * Update set-output to new env var approach Ref. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/#examples --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad9d3d7..c26f5e5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,20 +17,20 @@ jobs: graphql-version: [15, 16, 17.0.0-alpha.3] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} # https://github.com/actions/cache/blob/main/examples.md#node---yarn - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT # https://github.com/actions/cache/blob/main/examples.md#node---yarn - name: Cache yarn packages - uses: actions/cache@v2 + uses: actions/cache@v4 id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }}