-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (51 loc) · 1.48 KB
/
example-ci.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
name: CI for Example
on: [pull_request]
jobs:
build-vite:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 16
cache: npm
- run: npm install --no-save turbo-linux-64
- run: npm ci
- run: npm run build
working-directory: packages/for-ui
- run: npx yalc publish
working-directory: packages/for-ui
- run: npx yalc link @4design/for-ui
working-directory: example/vite-app
- run: npx yalc update
working-directory: example/vite-app
- run: npm ci
working-directory: example/vite-app
- run: npm run build
working-directory: example/vite-app
build-nextjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: actions/setup-node@v4
with:
node-version: 16
cache: npm
- run: npm install --no-save turbo-linux-64
- run: npm ci
- run: npm run build
working-directory: packages/for-ui
- run: npx yalc publish
working-directory: packages/for-ui
- run: npx yalc link @4design/for-ui
working-directory: example/nextjs-app
- run: npx yalc update
working-directory: example/nextjs-app
- run: npm ci
working-directory: example/nextjs-app
- run: npm run build
working-directory: example/nextjs-app