Skip to content

Fix dependencies. Add prepack script #2

Fix dependencies. Add prepack script

Fix dependencies. Add prepack script #2

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