Skip to content

Commit 1b662c2

Browse files
committed
fix(cd): make sure the .npmrc is clean before adding config
1 parent 375387b commit 1b662c2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/cd-matrix.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,18 @@ jobs:
7676
}
7777
7878
- name: Create .npmrc file
79-
run: touch .npmrc
79+
run: |
80+
if [ -f ".npmrc" ]; then
81+
rm .npmrc
82+
fi
83+
touch .npmrc
84+
8085
8186
- name: Configure npm registry
8287
run: |
8388
echo "@infragistics:registry=https://packages.infragistics.com/npm/js-licensed/" >> .npmrc
8489
echo "//packages.infragistics.com/npm/js-licensed/:_authToken=${{ secrets.INFRAGISTICS_NPM_TOKEN }}" >> .npmrc
8590
86-
- name: Verify .npmrc content
87-
run: cat .npmrc
88-
8991
- name: Install dependencies
9092
run: npm install
9193
env:

0 commit comments

Comments
 (0)