-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.22 KB
/
Copy pathci.yml
File metadata and controls
47 lines (41 loc) · 1.22 KB
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
39
40
41
42
43
44
45
46
47
name: "CI"
on:
pull_request:
branches:
- main
- develop
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Determine app directory
id: app-dir
run: |
if [ "${{ github.base_ref }}" = "main" ]; then
echo "dir=old-branding" >> "$GITHUB_OUTPUT"
else
echo "dir=new-branding" >> "$GITHUB_OUTPUT"
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: ${{ steps.app-dir.outputs.dir }}/package-lock.json
- name: Install dependencies
working-directory: ${{ steps.app-dir.outputs.dir }}
run: npm ci
- name: Build
working-directory: ${{ steps.app-dir.outputs.dir }}
env:
SUPABASE_URL: https://placeholder.supabase.co
SUPABASE_SERVICE_ROLE_KEY: placeholder
EMAIL_HOST: placeholder
EMAIL_PORT: "587"
EMAIL_PASSWORD: placeholder
EMAIL_FROM: placeholder@example.com
EMAIL_DEV_TO: placeholder@example.com
PUBLIC_SITE_URL: https://example.com
run: npm run build