From 2875f8aeef9338523c1a17989843df0480c30fca Mon Sep 17 00:00:00 2001 From: syafiqparadisam Date: Sun, 5 May 2024 19:28:47 +0700 Subject: [PATCH] fix: update working directory in cicd.yml --- .github/workflows/cicd.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index d43b118..0df461e 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -10,6 +10,9 @@ jobs: ci: name: Setup nodejs runs-on: ubuntu-latest + defaults: + run: + working-directory: ./project steps: - name: Checkout repo @@ -20,23 +23,23 @@ jobs: with: node-version: 20.12.0 - - name: Go to project folder - run: ll + # - name: Go to project folder + # run: ll - - name: Go to project folder - run: cd project + # - name: Go to project folder + # run: cd project - - name: Print working dir - run: pwd + # - name: Print working dir + # run: pwd - # - name: Install dependencies - # run: npm install + - name: Install dependencies + run: npm install - # - name: Linting - # run: npm run lint + - name: Linting + run: npm run lint - # - name: Build project - # run: npm run build + - name: Build project + run: npm run build # cd: # name: CD processes