Skip to content

Commit

Permalink
Use an environment variable for the fontawesome secret token
Browse files Browse the repository at this point in the history
  • Loading branch information
SjaakSchilperoort committed May 7, 2024
1 parent 7fe7c9c commit f207840
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on: [push]
jobs:
tests:
runs-on: ubuntu-latest
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Authenticate with FontAwesome Pro
run: echo "//npm.fontawesome.com/:_authToken=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" >> .npmrc && cat .npmrc
- name: Install modules
run: yarn
- name: Run lint
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}

0 comments on commit f207840

Please sign in to comment.