chore: revert only-allow & pnpm removal
This commit is contained in:
parent
0c5e8435e6
commit
b5b08dbe55
2 changed files with 7 additions and 5 deletions
11
.build.yml
11
.build.yml
|
@ -2,6 +2,7 @@ image: alpine/edge
|
||||||
packages:
|
packages:
|
||||||
- nodejs
|
- nodejs
|
||||||
- npm
|
- npm
|
||||||
|
- pnpm
|
||||||
secrets:
|
secrets:
|
||||||
- 291f0e35-9b8d-43ff-844c-77c5f29c1876
|
- 291f0e35-9b8d-43ff-844c-77c5f29c1876
|
||||||
environment:
|
environment:
|
||||||
|
@ -9,16 +10,16 @@ environment:
|
||||||
tasks:
|
tasks:
|
||||||
- install-deps: |
|
- install-deps: |
|
||||||
cd mcfly
|
cd mcfly
|
||||||
npm i
|
pnpm i
|
||||||
- build: |
|
- build: |
|
||||||
cd mcfly/site
|
cd mcfly
|
||||||
npm run build
|
pnpm -F site run build
|
||||||
- deploy: |
|
- deploy: |
|
||||||
cd mcfly/site
|
cd mcfly
|
||||||
{
|
{
|
||||||
set +x
|
set +x
|
||||||
. ~/.buildsecrets
|
. ~/.buildsecrets
|
||||||
set -x
|
set -x
|
||||||
}
|
}
|
||||||
export NETLIFY_AUTH_TOKEN
|
export NETLIFY_AUTH_TOKEN
|
||||||
npm site run deploy
|
pnpm -F site run deploy
|
|
@ -3,6 +3,7 @@
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"preinstall": "npx only-allow pnpm",
|
||||||
"start": "pnpm --filter site start",
|
"start": "pnpm --filter site start",
|
||||||
"site": "pnpm --filter site start",
|
"site": "pnpm --filter site start",
|
||||||
"build": "pnpm --filter site build",
|
"build": "pnpm --filter site build",
|
||||||
|
|
Loading…
Reference in a new issue