Skip to content

Commit

Permalink
Authenticate with npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Sep 27, 2023
1 parent f62064b commit ede9e06
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,22 @@ jobs:
restore-keys: |
${{ runner.os }}-build-node_v20-
- name: Authenticate npm registry
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
run: |
cat <<EOT >> .npmrc
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=$NPM_TOKEN
EOT
working-directory: ./opendata-assets
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: install npm packages
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
run: npm ci
working-directory: ./opendata-assets

#- name: Install Dependencies
# run: |
# cat <<EOT >> .npmrc
# @fortawesome:registry=https://npm.fontawesome.com/
# //npm.fontawesome.com/:_authToken=$NPM_TOKEN
# EOT
# npm ci
# working-directory: ./opendata-assets
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: run stylelint
run: npx stylelint "src/less" -f github
working-directory: ./opendata-assets
Expand Down

0 comments on commit ede9e06

Please sign in to comment.