Skip to content

Commit

Permalink
Add fontawesome pro package with github action config
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelCDL committed Jan 4, 2023
1 parent 7d65a26 commit 2ae8cb5
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ jobs:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
run: |
npm config set '@fortawesome:registry=https://npm.fontawesome.com/'
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_TOKEN }}"
npm ci
- name: Create test build
run: npm run test-build
- name: Cache test build
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
dist
node_modules
.npmrc
.parcel-cache
ui-assets
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ View at: https://cdlib.github.io/cdlib-ui

## Installation

Requires Node, npm.
Requires Node, npm and Font Awesome Pro token

Run `npm install`.
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`.

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.

3. Run `npm install`.

## Developing

Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"homepage": "https://github.com/cdlib/cdlib-ui#readme",
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@fortawesome/fontawesome-pro": "^6.2.1",
"@frctl/fractal": "^1.5.13",
"@frctl/mandelbrot": "^1.4.0",
"@parcel/optimizer-data-url": "^2.8.0",
Expand Down

0 comments on commit 2ae8cb5

Please sign in to comment.