run eslint against mdx and md files #728
Workflow file for this run
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: Mintlify Continuous Integration | |
run-name: run eslint against mdx and md files | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
# https://vercel.com/guides/corepack-errors-github-actions | |
- name: Use Latest Corepack | |
run: | | |
echo "Before: corepack version => $(corepack --version || echo 'not installed')" | |
npm install -g corepack@latest | |
echo "After : corepack version => $(corepack --version)" | |
corepack enable | |
pnpm --version | |
- run: pnpm i | |
- run: pnpm lint |