Fix dependencies. Add prepack script #2
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: "Lint and typecheck" | |
on: [push] | |
jobs: | |
lint-and-checktype: | |
runs-on: ubuntu-latest | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v3 | |
- name: find yarn | |
run: which yarn | |
- name: Set yarn version to version 3.x | |
run: yarn set version 3.3.1 | |
- name: Set authentication token | |
run: 'yarn config set npmScopes.pendle.npmAuthToken "${NPM_AUTH_TOKEN}"' | |
- name: Run install | |
run: yarn install --immutable | |
- name: Lint | |
run: yarn lint:nofix | |
- name: Type check | |
run: yarn typecheck |