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:
parent
bbca17bc53
commit
70e2bff0e2
1
.github/workflows/publish.yaml
vendored
1
.github/workflows/publish.yaml
vendored
@ -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
|
||||
|
3
.github/workflows/repo.yaml
vendored
3
.github/workflows/repo.yaml
vendored
@ -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:
|
||||
|
2
Makefile
2
Makefile
@ -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
|
||||
|
@ -8,6 +8,7 @@
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"packageManager": "pnpm@8.15.9",
|
||||
"scripts": {
|
||||
"lint:fix": "pnpm lint --fix",
|
||||
"lint": "eslint . --ext .ts,.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user