Skip to content

Commit 4289e5e

Browse files
committed
ci: fix npm install in ci
1 parent f6df2b3 commit 4289e5e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,24 @@ jobs:
2525
uses: actions/setup-node@v3
2626
with:
2727
node-version: ${{ matrix.node-version }}
28+
registry-url: https://npm.fontawesome.com/
29+
scope: '@fortawesome'
30+
cache: 'npm'
2831

2932
- name: Install base dependencies
3033
run: npm ci --no-audit --no-save
34+
env:
35+
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
3136

3237
- name: Install React dependencies
3338
run: npm ci --no-save react@${{ matrix.react }} react-dom@${{ matrix.react }}
39+
env:
40+
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
3441

3542
- name: Install FontAwesome dependencies
3643
run: npm ci --no-save @fortawesome/fontawesome-svg-core@${{ matrix.fontawesome-svg-core }} @fortawesome/free-solid-svg-icons@${{ matrix.free-solid-svg-icons }}
44+
env:
45+
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
3746

3847
- name: Verify React version
3948
run: npm list react react-dom

0 commit comments

Comments
 (0)