Repository navigation
57 lines (49 loc) · 1.68 KB
/
Copy pathbuild.yml
File metadata and controls
57 lines (49 loc) · 1.68 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
48
49
50
51
52
53
54
55
56
57
name: Build
on:
workflow_call:
inputs:
fetch-depth:
description: 'Checkout fetch depth'
required: false
type: string
default: '0'
node-version:
description: 'Node.js version'
required: false
type: string
default: '24'
yarn-version:
description: 'Yarn version'
required: false
type: string
default: '4.1.0'
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Access repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: ${{ inputs.fetch-depth }}
- name: Setup Node.js and Yarn
uses: ./.github/actions/setup-node-yarn
with:
node-version: ${{ inputs.node-version }}
yarn-version: ${{ inputs.yarn-version }}
- name: Install dependencies
uses: ./.github/actions/yarn-install
- name: Build
run: yarn build
- name: Upload client build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-client
path: client/dist
- name: Upload server build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-server
path: server/dist