From 7335817d55641f5564b0f1d5a90d929be31c9e19 Mon Sep 17 00:00:00 2001 From: Reinis Ivanovs Date: Fri, 27 Dec 2024 01:12:51 +0200 Subject: [PATCH] update CD script --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4258ec2..ad4cf30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,12 +56,13 @@ jobs: known_hosts: ${{ secrets.KNOWN_HOSTS }} - run: | - ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' + set -e + ssh -tt ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' set -e - whoami + echo "Node version: $(node -v)" + corepack enable + corepack prepare pnpm@latest --activate cd /opt/modes - git fetch - git reset --hard origin/main pnpm install pnpm nx run-many --target=build --all pnpm prisma db push --schema apps/api/prisma/schema.prisma