Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for thin icons #398

Merged
merged 15 commits into from
Dec 22, 2020
Merged
13 changes: 11 additions & 2 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: npm install and test
- name: npm install, build, and test
run: |
npm install
npm run build
npm install react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }}
npm list react react-dom react-test-renderer
npm run lint
npm run test
npm run test.latest
npm run test.next.proregistry
env:
Tests: true
jasonlundien marked this conversation as resolved.
Show resolved Hide resolved
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}

-name: dist
run: |
npm run dist
2 changes: 2 additions & 0 deletions .npmrc.proregistry
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
"prettier": "pretty-quick --pattern src/** --staged",
"precommit": "npm run lint && npm run prettier && lint-staged",
"prepack": "npm run dist",
"test": "jest",
"test": "npm run test.latest && npm run test.next",
"test.latest": "npm --no-save install @fortawesome/fontawesome-svg-core@latest && jest --silent",
"test.next": "npm --no-save install @fortawesome/fontawesome-svg-core@next && jest --silent",
"test.next.proregistry": "npm --userconfig .npmrc.proregistry --registry https://npm.fontawesome.com install --no-save @fortawesome/fontawesome-svg-core@next && jest --silent",
"clean": "rm -f index.js && rm -f index.es.js"
},
"lint-staged": {
Expand Down