Skip to content

Commit 28ee53b

Browse files
committed
add ui-kit-release
1 parent fe782af commit 28ee53b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: UI Kit Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: 'Branch to build from'
8+
required: true
9+
default: 'main'
10+
type: string
11+
12+
jobs:
13+
build-ui-kit:
14+
name: Build and release UI kit
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.event.inputs.branch }}
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '18'
26+
cache: 'npm'
27+
28+
- name: Install dependencies
29+
run: npm ci
30+
working-directory: ./ui-kit
31+
32+
- name: Build UI kit
33+
run: npm run build
34+
working-directory: ./ui-kit
35+
36+
- name: Create artifact
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: ui-kit-build
40+
path: ui-kit/dist/
41+
retention-days: 7
42+
```

0 commit comments

Comments
 (0)