fix ci/cd

This commit is contained in:
2024-12-02 10:38:45 +02:00
parent b5a25a6ece
commit 7da9764388
8 changed files with 27 additions and 19 deletions
+4 -2
View File
@@ -22,6 +22,8 @@ jobs:
node-version: '22'
- name: Clean install dependencies and build
run: |
npm ci
npm run build-only --workspace=apps/frontend -- --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}/
corepack enable
pnpm deploy --filter frontend --frozen-lockfile build/frontend
cd build/frontend
pnpm run build-only --emptyOutDir --outDir /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}}/
mv /www/hereconnect.condev.ru/current /www/hereconnect.condev.ru/old && mv /www/hereconnect.condev.ru/build-${{env.GITHUB_SHA}} /www/hereconnect.condev.ru/current && rm -rf /www/hereconnect.condev.ru/old