-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 820 Bytes
/
deploy.yml
File metadata and controls
38 lines (29 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy to Vercel
on:
push:
branches: [deploy]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Check for Lock File
run: |
if [ ! -f package-lock.json ] && [ ! -f npm-shrinkwrap.json ] && [ ! -f yarn.lock ];
then echo "Error: No lock file found! Ensure you have committed a lock file."
exit 1
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22' # LTS version of Node
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run type checking
run: npm run check
- name: Lint & Format Check
run: npm run lint
- name: Build
run: npm run build