Add npmrc #467
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and build | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [22.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: corepack enable | |
- run: | | |
npm config set '@fortawesome:registry' '${{ secrets.FONTAWESOME_REGISTRY }}' | |
npm config set '//harding.dev:23435/:_authToken' '${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}' | |
pnpm install | |
# TODO: code coverage, reporting, break these steps up | |
- run: pnpm format | |
- run: pnpm lint | |
- run: pnpm test | |
- run: pnpm typecheck | |
- run: pnpm build |