From 126c0d86d6eae8dfac08899112aff487619421cc Mon Sep 17 00:00:00 2001 From: kpavlenko Date: Mon, 3 Jul 2023 18:10:48 +0200 Subject: [PATCH] ISE-184: sonarcloud step fix --- .github/workflows/npmpublish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index ea084b0..401d0d6 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -30,12 +30,15 @@ jobs: needs: build runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: SonarCloud Scan uses: SonarSource/sonarcloud-github-action@master env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_PROJECT_KEY: openimis_openimis-fe-admin_js - SONAR_ORGANIZATION: openimis-1 + publish-npm: needs: build