Skip to content

Commit

Permalink
fix(ci): remove npmrc and handle npm token auth elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
charles4221 committed Jan 11, 2024
1 parent 782cb90 commit 1f4beaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup Node.js v20.10.0
uses: actions/setup-node@v3
with:
node-version: 20
node-version: '20.10.0'
registry-url: https://npm.fontawesome.com/
scope: '@fortawesome'
cache: 'npm'

- name: Install Node Dependencies
run: npm ci
env:
NPM_CONFIG_FONT_AWESOME_TOKEN: ${{ secrets.NPM_CONFIG_FONT_AWESOME_TOKEN }}
run: npm install
NODE_AUTH_TOKEN: ${{ secrets.NPM_CONFIG_FONT_AWESOME_TOKEN }}

- name: Lint Code with ESLint
run: npm run lint
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.7.0
nodejs 20.10.0

0 comments on commit 1f4beaf

Please sign in to comment.