generated from threeal/action-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.13 KB
/
build.yaml
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
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
package-package:
name: Build Package
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Build Package
run: yarn build
- name: Upload Package
uses: actions/upload-artifact@v4.5.0
with:
name: package
path: package.tgz
build-docs:
name: Build Documentation
runs-on: ubuntu-24.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version-file: .nvmrc
- name: Setup Yarn
uses: threeal/setup-yarn-action@v2.0.0
- name: Build Documentation
run: yarn docs
- name: Upload Documentation
uses: actions/upload-artifact@v4.5.0
with:
name: docs
path: docs