Skip to content

Commit 61b2f6d

Browse files
committed
ci: fix npm install in ci
1 parent d712e31 commit 61b2f6d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push, pull_request_target]
44

55
jobs:
66
build:
@@ -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.NPM_CONFIG_FONT_AWESOME_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.NPM_CONFIG_FONT_AWESOME_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.NPM_CONFIG_FONT_AWESOME_TOKEN }}
3746

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

0 commit comments

Comments
 (0)