From 53d63597203e491ae36c07cb397e265e73972eee Mon Sep 17 00:00:00 2001 From: Mahmoud Mabrok Fouad Date: Sun, 3 Mar 2024 13:16:09 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index eb4d9d5..ae054c3 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,12 +20,15 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - name: checkout code + uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci - - run: npm run build --if-present + - name: install dependencies + run: npm ci + - name: run build if exists + run: npm run build --if-present - run: npm test