-
Notifications
You must be signed in to change notification settings - Fork 9
54 lines (44 loc) · 1.27 KB
/
01-build-outputs.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Build outputs
on:
workflow_call:
jobs:
build-showcases:
name: Build outputs
runs-on: ubuntu-latest
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache
- name: ⏬ Download foundations build
uses: actions/download-artifact@v4
with:
name: db-ui-foundations-build
path: packages/foundations/build
- name: ⏬ Download components build
uses: actions/download-artifact@v4
with:
name: db-ui-components-build
path: packages/components/build
- name: ⏬ Download output
uses: actions/download-artifact@v4
with:
name: db-ui-output
path: output
- name: 📥 Install output dependencies
uses: bahmutov/npm-install@v1
with:
install-command: npm i
- name: 🔨 Build outputs
run: npm run build-outputs
- name: ⏫ Upload outputs
uses: actions/upload-artifact@v4
with:
name: db-ui-outputs
path: build-outputs
- name: 💀 Killing me softly
uses: ./.github/actions/cancel-workflow
if: failure()
with:
token: ${{ secrets.GITHUB_TOKEN }}