Skip to content

Commit

Permalink
Use Node 20 (#94)
Browse files Browse the repository at this point in the history
* Use Node 20

* Update more versions in CI
  • Loading branch information
lorisleiva authored Oct 10, 2024
1 parent e5c620d commit 218cebf
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-poems-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-solana-program": patch
---

Use Node v20
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
ANCHOR_VERSION: 0.30.0
NODE_VERSION : 20
SOLANA_VERSION: 1.18.18
TOOLCHAIN: 1.75.0

Expand All @@ -23,7 +24,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down Expand Up @@ -113,7 +114,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ env.NODE_VERSION }}
cache: "pnpm"
- name: Install Dependencies
run: pnpm install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"template"
],
"engines": {
"node": ">=v18.0.0"
"node": ">=v20.0.0"
},
"scripts": {
"build": "./scripts/build.mjs",
Expand Down
2 changes: 1 addition & 1 deletion template/base/.github/actions/setup/action.yml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
Expand Down
3 changes: 3 additions & 0 deletions template/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
"typescript": "^5.5.2",
"zx": "^7.2.3"
},
"engines": {
"node": ">=v20.0.0"
},
"packageManager": "[email protected]"
}
4 changes: 0 additions & 4 deletions template/clients/js/clients/js/package.json.njk
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,12 @@
"rimraf": "^5.0.5",
"tsup": "^8.1.2",
"typedoc": "^0.25.12",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.5.3"
},
"ava": {
"nodeArguments": [
"--no-warnings"
],
"require": [
"@solana/webcrypto-ed25519-polyfill"
],
"typescript": {
"compile": false,
"rewritePaths": {
Expand Down

0 comments on commit 218cebf

Please sign in to comment.