Skip to content

Commit 91b2926

Browse files
committed
Add npmrc file to sonar build
1 parent 87d391f commit 91b2926

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/sonarscan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: SonarCloud
22

3+
env:
4+
NPMRC: ${{ secrets.NPMRC }}
35
on:
46
pull_request_target:
57
types: [opened, synchronize, reopened]
@@ -19,6 +21,8 @@ jobs:
1921
with:
2022
java-version: '17'
2123
distribution: 'adopt'
24+
- name: Add .npmrc file
25+
run: echo -e $NPMRC > ~/.npmrc
2226
- name: Cache SonarCloud packages
2327
uses: actions/cache@v4
2428
with:

0 commit comments

Comments
 (0)