-
Notifications
You must be signed in to change notification settings - Fork 14
83 lines (79 loc) · 2.4 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: CI
on: [push]
jobs:
checks:
runs-on: ubuntu-latest
name: Checks
strategy:
fail-fast: false
matrix:
tasks: [prettier-check, eslint-check, check-circular-deps, test, typecheck, build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
run_install: true
- run: pnpm ${{ matrix.tasks }}
chromatic:
runs-on: ubuntu-latest
name: Chromatic
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
run_install: true
- uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: packages/bento-design-system
autoAcceptChanges: main
exitOnceUploaded: true
cloudflare-pages:
runs-on: ubuntu-latest
name: Cloudflare Pages
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v2
with:
run_install: true
- run: pnpm website-build
- run: pnpm playroom-build
- run: pnpm configurator-build
- name: Publish Website
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
projectName: bento-website
directory: packages/website/build
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Playroom
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
projectName: bento-playroom
directory: packages/bento-design-system/dist/playroom
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Configurator
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
projectName: bento-configurator
directory: packages/configuration-builder/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}