Skip to content

Commit

Permalink
add npm ci to backend build
Browse files Browse the repository at this point in the history
  • Loading branch information
parth4apple committed Feb 9, 2024
1 parent d359066 commit 042b67e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down

0 comments on commit 042b67e

Please sign in to comment.