mcfly/.build.yml
Ayo Ayco 2e8211c2ad devops: separate deps installation for site build
- project dep tsc is needed before local deps build
- site workspace deps installation is needed before site build
2025-03-01 11:56:17 +01:00

37 lines
861 B
YAML

image: alpine/edge
packages:
- nodejs
- npm
- pnpm
secrets:
- 291f0e35-9b8d-43ff-844c-77c5f29c1876
- bbfcb6dc-7c4a-42ee-a11a-022f0339a133
environment:
NETLIFY_SITE_ID: 390b392a-a898-491b-8500-79aa30f724d6
GH_USER: ayoayco
REPO: mcfly
tasks:
- push-mirror: |
cd ~/"${REPO}"
git config --global credential.helper store
git push --mirror "https://github.com/${GH_USER}/${REPO}"
- install-deps: |
cd ~/"${REPO}"
pnpm i --ignore-scripts
- build-local-deps: |
cd ~/"${REPO}"
pnpm -F ./packages/core build
pnpm -F ./packages/config build
- build: |
cd ~/"${REPO}"
pnpm -F site i --ignore-scripts
pnpm -F site build
- deploy: |
cd mcfly
{
set +x
. ~/.buildsecrets
set -x
}
export NETLIFY_AUTH_TOKEN
pnpm -F site run deploy