ci: update actions and use set node version #201
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: Checks | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [ | |
synchronize, # PR was updated | |
opened, # PR was open | |
reopened, # PR was closed and is now open again | |
ready_for_review, # PR was converted from draft to open | |
] | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ env.GITHUB_TOKEN }} | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Install Dependencies | |
run: npm ci --legacy-peer-deps | |
- name: Check Docs | |
run: npm run check-docs | |
- name: Check Typing | |
run: npm run check-typing | |
- name: Check Formatting | |
run: npm run check-formatting | |
- name: Lint | |
run: npm run lint | |
- name: Check Prepack | |
run: npm run prepack |