Skip to content

Commit

Permalink
Node.js 16 actions are deprecated. (#1567)
Browse files Browse the repository at this point in the history
Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3.
For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
  • Loading branch information
retyui authored Feb 27, 2024
1 parent a670b2d commit 536d2a9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Cache deps
id: yarn-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./node_modules
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/setup-website-deps/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Cache website deps
id: yarn-cache-website
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
./website/node_modules
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and website deps
uses: ./.github/actions/setup-website-deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/example-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Install and Cache deps
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup-deps
Expand All @@ -22,7 +22,7 @@ jobs:
name: Lint
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
Expand All @@ -36,7 +36,7 @@ jobs:
name: Typecheck
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
Expand All @@ -50,7 +50,7 @@ jobs:
name: Flow
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
Expand All @@ -64,7 +64,7 @@ jobs:
name: Test
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and deps
uses: ./.github/actions/setup-deps
Expand All @@ -73,14 +73,14 @@ jobs:
run: yarn test:ci

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

test-website:
runs-on: ubuntu-latest
name: Test Website
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js and website deps
uses: ./.github/actions/setup-website-deps
Expand Down

0 comments on commit 536d2a9

Please sign in to comment.