From 60137c8566e34d3c143e2efd3889b0521b34867e Mon Sep 17 00:00:00 2001 From: Danil Titarenko <77471369+danilapog@users.noreply.github.com> Date: Tue, 12 Mar 2024 13:48:12 +0300 Subject: [PATCH] Fix the build of backend service (nodejs) --- .github/workflows/codeql.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 2a7925f5204..571a1b512bb 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -56,7 +56,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -90,15 +90,19 @@ jobs: - name: update yarn if: matrix.language == 'javascript-typescript' run: | - yarn set version 3.2.4 + YARN_VER=$(cat ./common/ASC.SsoAuth/package.json | jq -r '.packageManager' | egrep -i -o '[0-9].[0-9].[0-9]') + yarn set version ${YARN_VER} - name: build js if: matrix.language == 'javascript-typescript' run: | + currentDir=$(pwd) services=("ASC.Socket.IO" "ASC.SsoAuth") for i in ${services[@]}; do + cd ./common/${i} echo "==== build ${i} ====" - yarn install --cwd ./common/${i} --frozen-lockfile + yarn install --frozen-lockfile + cd ${currentDir} done - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2