Skip to content

Commit

Permalink
Replace corepack with npm (#1040)
Browse files Browse the repository at this point in the history
* Replace corepack with npm

* Fix deps
  • Loading branch information
int128 authored Feb 4, 2025
1 parent 9664b92 commit 4204857
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: 20
- run: corepack enable pnpm
- run: npm install -g pnpm@latest-10
- run: pnpm i
- run: pnpm run -r lint --fix
- run: pnpm run format
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hello-world.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: 20
- run: corepack enable pnpm
- run: npm install -g pnpm@latest-10
- run: pnpm i
- run: pnpm test
- run: pnpm build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: 20
- run: corepack enable pnpm
- run: npm install -g pnpm@latest-10
- run: pnpm i
- run: pnpm run --recursive build
- uses: int128/release-typescript-action@5c561f7c79fbe5981a4e91a58735a7d124a70022 # v1.34.0
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"type": "module",
"devDependencies": {
"@eslint/js": "9.19.0",
"@tsconfig/node20": "20.1.4",
"@types/jest": "29.5.14",
"@types/node": "20.17.16",
Expand All @@ -14,6 +15,7 @@
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-prettier": "5.2.3",
"jest": "29.7.0",
"pnpm": "10.1.0",
"prettier": "3.4.2",
"ts-jest": "29.2.5",
"typescript": "5.7.3",
Expand All @@ -22,5 +24,5 @@
"engines": {
"node": "20.x"
},
"packageManager": "pnpm@9.15.4"
"packageManager": "pnpm@10.1.0"
}
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 4204857

Please sign in to comment.