diff --git a/.github/workflows/frontendVPS.yml b/.github/workflows/frontendVPS.yml index d1954d6a..7be8909e 100644 --- a/.github/workflows/frontendVPS.yml +++ b/.github/workflows/frontendVPS.yml @@ -32,6 +32,12 @@ jobs: run: | pm2 stop 0 + # Install dependencies in the frontend directory + - name: Install dependencies + run: | + cd frontend + npm ci + # Copy files to the production directory - name: Copy files to production directory run: | @@ -51,11 +57,6 @@ jobs: echo "NEXT_PUBLIC_GRAPHQL_URL=${{ secrets.NEXT_PUBLIC_GRAPHQL_URL }}" >> .env.production echo "NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_URL }}" >> .env.production - # Install dependencies in the frontend directory - - name: Install dependencies - run: | - cd frontend - npm ci - name: Build production directory run: |