Fix CI pipeline to use npm install instead of npm ci (no lockfile in repo)
This commit is contained in:
@@ -38,7 +38,7 @@ stages:
|
||||
install-backend:
|
||||
stage: install
|
||||
script:
|
||||
- npm ci
|
||||
- npm install
|
||||
artifacts:
|
||||
paths:
|
||||
- node_modules/
|
||||
@@ -48,7 +48,7 @@ install-frontend:
|
||||
stage: install
|
||||
script:
|
||||
- cd frontend
|
||||
- npm ci
|
||||
- npm install
|
||||
artifacts:
|
||||
paths:
|
||||
- frontend/node_modules/
|
||||
@@ -121,8 +121,8 @@ deploy:
|
||||
- echo "Deploying on dashboard-dev..."
|
||||
- cd /home/cve-dashboard
|
||||
- git pull origin ${CI_COMMIT_BRANCH}
|
||||
- npm ci
|
||||
- cd frontend && npm ci && npm run build && cd ..
|
||||
- npm install
|
||||
- cd frontend && npm install && npm run build && cd ..
|
||||
- ./stop-servers.sh || true
|
||||
- ./start-servers.sh
|
||||
- echo "Deploy complete."
|
||||
|
||||
Reference in New Issue
Block a user