Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade to Node v20 #1968

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 23 additions & 64 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,20 @@ jobs:
runs-on: ubuntu-latest
name: pnpm lint
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 16
version: 8

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- uses: actions/setup-node@v4
with:
version: 8.6.1
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: pnpm
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Install dependencies
run: pnpm install

Expand All @@ -45,34 +32,19 @@ jobs:
runs-on: ubuntu-latest
name: pnpm format:check
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 16
version: 8

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- uses: actions/setup-node@v4
with:
version: 8.6.1
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: pnpm
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Install dependencies
run: pnpm install
Expand All @@ -83,33 +55,20 @@ jobs:
runs-on: ubuntu-latest
name: pnpm typecheck
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 16
version: 8

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8.6.1
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
- uses: actions/setup-node@v4
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: 20
cache: pnpm
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Install dependencies
run: pnpm install

Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
types: [labeled]
branches:
- main

jobs:
prerelease:
if: |
Expand All @@ -17,23 +18,21 @@ jobs:
environment: Preview

steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use PNPM
uses: pnpm/[email protected]
- uses: pnpm/action-setup@v2
with:
version: 8.6.1
version: 8

- name: Use Node.js 18
uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
cache: "pnpm"
node-version: 20
cache: pnpm
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Install NPM Dependencies
- name: Install dependencies
run: pnpm install

- name: Modify package.json version
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use PNPM
uses: pnpm/action-setup@v2.2.4
uses: pnpm/action-setup@v2.4.0
with:
version: 8.6.1
version: 8

- name: Use Node.js 18
uses: actions/setup-node@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
version: 8.6.1
node-version: 18
node-version: 20
cache: "pnpm"

- name: Install NPM Dependencies
Expand Down
27 changes: 7 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,20 @@ jobs:
runs-on: ubuntu-latest
name: pnpm test
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v2
with:
node-version: 16
version: 8

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- uses: actions/setup-node@v4
with:
version: 8.6.1
run_install: false
node-version: 20
cache: pnpm
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.18.0
v20
2 changes: 1 addition & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"react-hook-form": "^7.44.2",
"react-wrap-balancer": "^0.4.1",
"recharts": "^2.6.2",
"sharp": "^0.31.3",
"sharp": "^0.33.0",
"tailwind-merge": "^1.12.0",
"vaul": "^0.2.0",
"zod": "^3.21.4"
Expand Down
Loading