Skip to content

Commit

Permalink
build: ensure Node 20 is used
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMrMilchmann committed Oct 31, 2024
1 parent 9459d58 commit 8087470
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version-file: "package.json"
cache: "yarn"

- name: Yarn build
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version-file: "package.json"
cache: "yarn"

- name: Yarn build
run: yarn build
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"@actions/github": "^6.0.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/node": "^20.17.4",
"@vercel/ncc": "^0.38.1",
"typescript": "^5.6.2"
},
"engines": {
"node": ">= 20"
"node": "20"
},
"packageManager": "yarn@4.5.1"
}

0 comments on commit 8087470

Please sign in to comment.