Skip to content

Commit

Permalink
Bump build actions to v4 (#240)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
oporkka committed Mar 21, 2024
1 parent ce2342d commit ed75644
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -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 }}
Expand Down

0 comments on commit ed75644

Please sign in to comment.