-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 932 Bytes
/
build.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
33
34
35
36
37
38
39
name: Build
on:
push:
branches:
- main
- develop
pull_request:
env:
node_version: ${{ vars.NODE_VERSION }}
PUBLIC_API_BASE_URL: http://localhost:8080
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- name: Install dependencies
run: npm install
- name: Build application
run: npm run build
- name: Archive build artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: build-artifact
path: .svelte-kit/output/
if-no-files-found: error