Use corepack to manage the pnpm version (#2680)

* use corepack, specify package manager, add nvmrc

* rm version in github action

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
This commit is contained in:
Samuel Newman 2024-08-26 22:07:35 +01:00 committed by GitHub
parent bbca17bc53
commit 70e2bff0e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3 additions and 5 deletions

View File

@ -21,7 +21,6 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18

View File

@ -18,7 +18,6 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
@ -45,7 +44,6 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- uses: actions/setup-node@v4
with:
@ -66,7 +64,6 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- uses: actions/setup-node@v4
with:

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
18

View File

@ -51,4 +51,4 @@ deps: ## Installs dependent libs using 'pnpm install'
nvm-setup: ## Use NVM to install and activate node+pnpm
nvm install 18
nvm use 18
npm install --global pnpm
corepack enable

View File

@ -8,6 +8,7 @@
"engines": {
"node": ">=18"
},
"packageManager": "pnpm@8.15.9",
"scripts": {
"lint:fix": "pnpm lint --fix",
"lint": "eslint . --ext .ts,.js",