Skip to content

Commit 2ae8cb5

Browse files
committed
Add fontawesome pro package with github action config
1 parent 7d65a26 commit 2ae8cb5

File tree

5 files changed

+28
-3
lines changed

5 files changed

+28
-3
lines changed

.github/workflows/tests.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
node-version: '16.x'
1414
cache: 'npm'
1515
- name: Install dependencies
16-
run: npm ci
16+
run: |
17+
npm config set '@fortawesome:registry=https://npm.fontawesome.com/'
18+
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_TOKEN }}"
19+
npm ci
1720
- name: Create test build
1821
run: npm run test-build
1922
- name: Cache test build

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
dist
33
node_modules
4+
.npmrc
45
.parcel-cache
56
ui-assets

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ View at: https://cdlib.github.io/cdlib-ui
66

77
## Installation
88

9-
Requires Node, npm.
9+
Requires Node, npm and Font Awesome Pro token
1010

11-
Run `npm install`.
11+
1. Add the Font Awesome Pro token as a [GitHub Actions secret](https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md) named `FONTAWESOME_TOKEN`.
12+
13+
2. Add a **.npmrc** file within the project root using the [Per-Project](https://fontawesome.com/v5/docs/web/setup/use-package-managers#per-project) settings for Font Awesome Pro, including your token. This file is automatically ignored by Git and should not be committed.
14+
15+
3. Run `npm install`.
1216

1317
## Developing
1418

package-lock.json

+16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"homepage": "https://github.com/cdlib/cdlib-ui#readme",
4444
"devDependencies": {
4545
"@faker-js/faker": "^7.6.0",
46+
"@fortawesome/fontawesome-pro": "^6.2.1",
4647
"@frctl/fractal": "^1.5.13",
4748
"@frctl/mandelbrot": "^1.4.0",
4849
"@parcel/optimizer-data-url": "^2.8.0",

0 commit comments

Comments
 (0)