feat: use pnpm #1
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: Lint | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
DISCORD_SNOWFLAKE: ${{ vars.DISCORD_SNOWFLAKE }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install --prefer-offline | |
- name: Run format | |
run: npm run format | |
- name: Run lint | |
run: npm run lint | |
- name: Run check | |
run: npm run check |