Skip to content

Commit

Permalink
upgrade dev env to nodejs 20 and add nodejs 19 + 20 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
schickling committed Jun 29, 2023
1 parent 9406597 commit bb1ba31
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 22 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
node-version: [14, 16, 17, 18]
node-version: [14, 16, 17, 18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -31,7 +31,7 @@ jobs:
build-example-next-contentlayer-example:
strategy:
matrix:
node-version: [17, 18] # `app` dir requires 17+
node-version: [17, 18, 19, 20] # `app` dir requires 17+
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -43,7 +43,7 @@ jobs:
build-example-next-rsc-dynamic-example:
strategy:
matrix:
node-version: [17, 18] # `app` dir requires 17+
node-version: [17, 18, 19, 20] # `app` dir requires 17+
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -55,7 +55,7 @@ jobs:
build-example-node-script:
strategy:
matrix:
node-version: [14, 16, 17, 18]
node-version: [14, 16, 17, 18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -67,7 +67,7 @@ jobs:
build-example-node-script-mdx:
strategy:
matrix:
node-version: [14, 16, 17, 18]
node-version: [14, 16, 17, 18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -79,7 +79,7 @@ jobs:
build-example-node-script-remote-content:
strategy:
matrix:
node-version: [14, 16, 17, 18]
node-version: [14, 16, 17, 18, 19, 20]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down
30 changes: 24 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

devShell = with pkgs; pkgs.mkShell {
buildInputs = [
nodejs-18_x
(yarn.override { nodejs = nodejs-18_x; })
nodejs_20
(yarn.override { nodejs = nodejs_20; })
];
};

Expand Down
2 changes: 1 addition & 1 deletion packages/@contentlayer/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@contentlayer/core": "workspace:*",
"@contentlayer/utils": "workspace:*",
"clipanion": "^3.2.0",
"clipanion": "^3.2.1",
"typanion": "^3.12.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/contentlayer-stackbit-yaml-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@contentlayer/core": "workspace:*",
"@contentlayer/utils": "workspace:*",
"@stackbit/sdk": "^0.3.25",
"clipanion": "^3.2.0",
"clipanion": "^3.2.1",
"typanion": "3.12.1",
"yaml": "^1.10.2"
},
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ __metadata:
"@contentlayer/core": "workspace:*"
"@contentlayer/utils": "workspace:*"
"@types/node": ^20.2.5
clipanion: ^3.2.0
clipanion: ^3.2.1
typanion: ^3.12.1
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -3037,14 +3037,14 @@ __metadata:
languageName: node
linkType: hard

"clipanion@npm:^3.2.0":
version: 3.2.0
resolution: "clipanion@npm:3.2.0"
"clipanion@npm:^3.2.1":
version: 3.2.1
resolution: "clipanion@npm:3.2.1"
dependencies:
typanion: ^3.8.0
peerDependencies:
typanion: "*"
checksum: e28e6f0d48aecff86097823c604aa486082d76d2a5d3abc71069a0d9f3338af769fd7c6634b2f444c5b1aac0743b503325cc0b30552c094c01ebc602631b273d
checksum: 448efd122ead3c802e61ba7a2002e2080c8cce01ce8a0a789d9b9e4f8fe70fd887dcf163ef8c778f5364a9e6f4b498b9f1853f709d7ed4291713e78bcfb88ee8
languageName: node
linkType: hard

Expand Down Expand Up @@ -3321,7 +3321,7 @@ __metadata:
"@contentlayer/core": "workspace:*"
"@contentlayer/utils": "workspace:*"
"@stackbit/sdk": ^0.3.25
clipanion: ^3.2.0
clipanion: ^3.2.1
contentlayer: "workspace:*"
typanion: 3.12.1
typescript: ^5.1.5
Expand Down

0 comments on commit bb1ba31

Please sign in to comment.