diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 92191f8..025d634 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -13,8 +13,12 @@ jobs: persist-credentials: false - name: Install and Build 🔧 run: | # Install npm packages and build the Storybook files + npm config set "@fortawesome:registry" https://npm.fontawesome.com/ + npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN npm install npm run build-storybook + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@3.6.2 with: diff --git a/.github/workflows/version-on-pr.yml b/.github/workflows/version-on-pr.yml index 6e00a92..2d3c956 100644 --- a/.github/workflows/version-on-pr.yml +++ b/.github/workflows/version-on-pr.yml @@ -17,7 +17,12 @@ jobs: with: node-version: 18.x - name: Install dependencies - run: npx ci + run: | + npm config set "@fortawesome:registry" https://npm.fontawesome.com/ + npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN + npx ci + env: + FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} - name: Install semantic-release extra plugins run: npm install --save-dev @semantic-release/changelog #@semantic-release/git # - name: Lint @@ -25,13 +30,8 @@ jobs: # - name: Test # run: npm run test:unit --if-present - name: Build - run: - npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && \ - npm config set "//npm.fontawesome.com/:_authToken" $FONTAWESOME_NPM_AUTH_TOKEN && \ - npm run build-lib + run: npm run build-lib - env: - FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}