-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (27 loc) · 927 Bytes
/
test.yml
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
name: Nightly Build
on:
schedule:
- cron: '0 0 * * *' # Runs at midnight every night
push:
branches:
- '*' # wildcard for every commit to any branch
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_SITE_URL: ${{ secrets.NEXT_PUBLIC_SITE_URL}}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL}}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY}}
DISABLE_DB_CONNECTION: 1
steps:
- name: Checkout code
uses: actions/checkout@v4 # Updated to v4
- name: Setup Node.js
uses: actions/setup-node@v4 # Updated to v4
with:
node-version: 'lts/*' # Uses the latest LTS version of Node.js
- name: Install dependencies
run: npm ci # Uses clean install instead of npm install
- name: Build the project
run: npm run build