Skip to content

Commit

Permalink
chore: use node 20 and corepack (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar authored Sep 9, 2024
1 parent 0ad5f12 commit 650efbc
Show file tree
Hide file tree
Showing 5 changed files with 3,271 additions and 2,302 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,16 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_GITHUB_TOKEN_PUBLIC }}

- uses: pnpm/action-setup@v2
with:
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: pnpm

- name: Install dependencies
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,13 @@ jobs:
timeout-minutes: 10

steps:
- name: Git checkout
uses: actions/checkout@v3

- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: "latest"

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: pnpm

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
],
"license": "MIT",
"engines": {
"node": ">=18"
"node": ">=20"
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"build": "tsc",
"watch": "tsc -w"
},
Expand All @@ -39,5 +38,6 @@
},
"release": {
"extends": "./index.js"
}
},
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
}
Loading

0 comments on commit 650efbc

Please sign in to comment.