From f207840ce2d63afac9770582356e8e8fd40b2486 Mon Sep 17 00:00:00 2001 From: Sjaak Schilperoort Date: Tue, 7 May 2024 22:27:55 +0200 Subject: [PATCH] Use an environment variable for the fontawesome secret token --- .github/workflows/ci.yml | 4 ++-- .npmrc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 815f9aa..34bc78f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.npmrc b/.npmrc index 2ac2158..52d5ff0 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ @fortawesome:registry=https://npm.fontawesome.com/ +//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}