From 042b67e3f060aeb8b99ab5809df13175eb5298f2 Mon Sep 17 00:00:00 2001 From: parth4apple <72187062+parth4apple@users.noreply.github.com> Date: Fri, 9 Feb 2024 00:05:20 -0800 Subject: [PATCH] add npm ci to backend build --- .github/workflows/build-and-deploy.yml | 1 - backend/package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 1b78f52f..54182f9d 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -32,7 +32,6 @@ jobs: touch .env echo MONGO_URI=${{ secrets.MONGO_URI }} >> .env echo SERVICE_ACCOUNT_KEY=${{ secrets.SERVICE_ACCOUNT_KEY }} >> .env - echo FRONTEND_ORIGIN=${{ vars.FRONTEND_ORIGIN }} >> .env - name: Build Frontend run: cd frontend && npm ci && npm run build - name: Build Backend diff --git a/backend/package.json b/backend/package.json index f4c73b9b..646d287f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -5,7 +5,7 @@ "main": "dist/app.js", "scripts": { "dev": "npx ts-node-dev src/app.ts", - "build": "tsc && tsc-alias", + "build": "npm ci && tsc && tsc-alias", "format": "npm run check-git-hooks && prettier --write .", "lint-fix": "npm run check-git-hooks && (eslint --fix --cache --report-unused-disable-directives . || true) && prettier --write .", "lint-check": "npm run check-git-hooks && eslint --cache --report-unused-disable-directives . && prettier --check .",