diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 699f5fc..e249d6d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,8 +29,7 @@ jobs: - name: Install dependencies for frontend run: | - cd frontend - npm install + npm run install:frontend - name: Build frontend run: | @@ -38,7 +37,7 @@ jobs: - name: Install dependencies for backend run: | - npm install:backend + npm run install:backend - name: Install sshpass run: sudo apt-get install -y sshpass diff --git a/package.json b/package.json index 7ec3d11..689225e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "private": true, "scripts": { "dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"", - "build:frontend": "cd frontend && npm install && npm run build", + "install:frontend": "cd frontend && npm install", + "build:frontend": "cd frontend && npm run build", "dev:frontend": "cd frontend && npm install && npm run dev", "dev:backend": "cd backend && npm install && npm run dev", "install:backend": "cd backend && npm install"