changed pre commit file #253
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: compile | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- dev | |
env: | |
AUTH_SECRET: ${{ secrets.AUTH_SECRET }} | |
POSTGRES_URL: ${{ secrets.POSTGRES_URL }} | |
OPENAI_KEY: ${{ secrets.OPENAI_KEY }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
# TODO: cache dependencies for faster installs | |
- name: Install Dependencies | |
run: npm ci | |
# TODO: check for types here, either through tsc command or with eslint-plugin-ts | |
- name: Run Next.js Build (Without Linting) | |
run: npm run build --no-lint |