|
4 | 4 | pull_request: |
5 | 5 |
|
6 | 6 | jobs: |
7 | | - extension: |
8 | | - name: Build extension |
9 | | - runs-on: ubuntu-latest |
10 | | - steps: |
11 | | - - name: Checkout repository |
12 | | - uses: actions/checkout@v5 |
13 | | - |
14 | | - - name: Cache Astro data # Speeds up postinstall time |
15 | | - uses: actions/cache@v4 |
16 | | - with: |
17 | | - path: | |
18 | | - **/.astro |
19 | | - key: smc-astro-cache-${{ github.repository }} |
20 | | - |
21 | | - - name: Setup pnpm |
22 | | - uses: pnpm/action-setup@v4 |
23 | | - |
24 | | - - name: Setup Node.js |
25 | | - uses: actions/setup-node@v5 |
26 | | - with: |
27 | | - node-version: 22.x |
28 | | - cache: 'pnpm' |
29 | | - cache-dependency-path: './pnpm-lock.yaml' |
30 | | - |
31 | | - - name: Install dependencies |
32 | | - run: pnpm install --frozen-lockfile |
33 | | - |
34 | | - - name: Build extension |
35 | | - run: pnpm ext build |
36 | | - |
37 | | - - name: Upload extension |
38 | | - uses: actions/upload-artifact@v4 |
39 | | - with: |
40 | | - name: SMC Extension ${{ github.sha }} |
41 | | - path: ./apps/extension/dist |
42 | | - |
43 | | - docs: |
44 | | - name: Build docs |
45 | | - runs-on: ubuntu-latest |
46 | | - steps: |
47 | | - - name: Checkout repository |
48 | | - uses: actions/checkout@v5 |
49 | | - |
50 | | - - name: Cache Astro data |
51 | | - uses: actions/cache@v4 |
52 | | - with: |
53 | | - path: | |
54 | | - **/.astro |
55 | | - key: smc-astro-cache-${{ github.repository }} |
56 | | - |
57 | | - - name: Setup pnpm |
58 | | - uses: pnpm/action-setup@v4 |
59 | | - |
60 | | - - name: Setup Node.js |
61 | | - uses: actions/setup-node@v5 |
62 | | - with: |
63 | | - node-version: 22.x |
64 | | - cache: 'pnpm' |
65 | | - cache-dependency-path: './pnpm-lock.yaml' |
66 | | - |
67 | | - - name: Install dependencies |
68 | | - run: pnpm install --frozen-lockfile |
69 | | - |
70 | | - - name: Build extension |
71 | | - run: pnpm doc build |
72 | | - |
73 | | - - name: Upload extension |
74 | | - uses: actions/upload-artifact@v4 |
75 | | - with: |
76 | | - name: SMC Docs ${{ github.sha }} |
77 | | - path: ./apps/dashboard/dist |
78 | | - |
79 | | - dashboard: |
80 | | - name: Build dashboard |
81 | | - runs-on: ubuntu-latest |
82 | | - steps: |
83 | | - - name: Checkout repository |
84 | | - uses: actions/checkout@v5 |
85 | | - |
86 | | - - name: Cache Astro data |
87 | | - uses: actions/cache@v4 |
88 | | - with: |
89 | | - path: | |
90 | | - **/.astro |
91 | | - key: smc-astro-cache-${{ github.repository }} |
92 | | - |
93 | | - - name: Setup pnpm |
94 | | - uses: pnpm/action-setup@v4 |
95 | | - |
96 | | - - name: Setup Node.js |
97 | | - uses: actions/setup-node@v5 |
98 | | - with: |
99 | | - node-version: 22.x |
100 | | - cache: 'pnpm' |
101 | | - cache-dependency-path: './pnpm-lock.yaml' |
102 | | - |
103 | | - - name: Install dependencies |
104 | | - run: pnpm install --frozen-lockfile |
105 | | - |
106 | | - - name: Build extension |
107 | | - run: pnpm dash build |
108 | | - |
109 | | - - name: Upload extension |
110 | | - uses: actions/upload-artifact@v4 |
111 | | - with: |
112 | | - name: SMC Dashboard ${{ github.sha }} |
113 | | - path: ./apps/dashboard/dist |
114 | | - |
115 | | - api: |
116 | | - name: Build API |
117 | | - runs-on: ubuntu-latest |
118 | | - steps: |
119 | | - - name: Checkout repository |
120 | | - uses: actions/checkout@v5 |
121 | | - |
122 | | - - name: Cache Astro data # Speeds up postinstall time |
123 | | - uses: actions/cache@v4 |
124 | | - with: |
125 | | - path: | |
126 | | - **/.astro |
127 | | - key: smc-astro-cache-${{ github.repository }} |
128 | | - |
129 | | - - name: Setup pnpm |
130 | | - uses: pnpm/action-setup@v4 |
131 | | - |
132 | | - - name: Setup Node.js |
133 | | - uses: actions/setup-node@v5 |
134 | | - with: |
135 | | - node-version: 22.x |
136 | | - cache: 'pnpm' |
137 | | - cache-dependency-path: './pnpm-lock.yaml' |
138 | | - |
139 | | - - name: Install dependencies |
140 | | - run: pnpm install --frozen-lockfile |
141 | | - |
142 | | - - name: Build extension |
143 | | - run: pnpm api build |
144 | | - |
145 | | - - name: Upload extension |
146 | | - uses: actions/upload-artifact@v4 |
147 | | - with: |
148 | | - name: SMC API ${{ github.sha }} |
149 | | - path: ./apps/api/dist |
| 7 | + extension: |
| 8 | + name: Build extension |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: Checkout repository |
| 12 | + uses: actions/checkout@v5 |
| 13 | + |
| 14 | + - name: Cache Astro data # Speeds up postinstall time |
| 15 | + uses: actions/cache@v4 |
| 16 | + with: |
| 17 | + path: | |
| 18 | + **/.astro |
| 19 | + key: smc-astro-cache-${{ github.repository }} |
| 20 | + |
| 21 | + - name: Setup pnpm |
| 22 | + uses: pnpm/action-setup@v4 |
| 23 | + |
| 24 | + - name: Setup Node.js |
| 25 | + uses: actions/setup-node@v5 |
| 26 | + with: |
| 27 | + node-version: 22.x |
| 28 | + cache: "pnpm" |
| 29 | + cache-dependency-path: "./pnpm-lock.yaml" |
| 30 | + |
| 31 | + - name: Install dependencies |
| 32 | + run: pnpm install --frozen-lockfile |
| 33 | + |
| 34 | + - name: Build extension |
| 35 | + run: pnpm ext build |
| 36 | + |
| 37 | + - name: Upload extension |
| 38 | + uses: actions/upload-artifact@v4 |
| 39 | + with: |
| 40 | + name: SMC Extension ${{ github.sha }} |
| 41 | + path: ./apps/extension/dist |
| 42 | + |
| 43 | + docs: |
| 44 | + name: Build docs |
| 45 | + runs-on: ubuntu-latest |
| 46 | + steps: |
| 47 | + - name: Checkout repository |
| 48 | + uses: actions/checkout@v5 |
| 49 | + |
| 50 | + - name: Cache Astro data |
| 51 | + uses: actions/cache@v4 |
| 52 | + with: |
| 53 | + path: | |
| 54 | + **/.astro |
| 55 | + key: smc-astro-cache-${{ github.repository }} |
| 56 | + |
| 57 | + - name: Setup pnpm |
| 58 | + uses: pnpm/action-setup@v4 |
| 59 | + |
| 60 | + - name: Setup Node.js |
| 61 | + uses: actions/setup-node@v5 |
| 62 | + with: |
| 63 | + node-version: 22.x |
| 64 | + cache: "pnpm" |
| 65 | + cache-dependency-path: "./pnpm-lock.yaml" |
| 66 | + |
| 67 | + - name: Install dependencies |
| 68 | + run: pnpm install --frozen-lockfile |
| 69 | + |
| 70 | + - name: Build extension |
| 71 | + run: pnpm doc build |
| 72 | + |
| 73 | + - name: Upload extension |
| 74 | + uses: actions/upload-artifact@v4 |
| 75 | + with: |
| 76 | + name: SMC Docs ${{ github.sha }} |
| 77 | + path: ./apps/dashboard/dist |
| 78 | + |
| 79 | + dashboard: |
| 80 | + name: Build dashboard |
| 81 | + runs-on: ubuntu-latest |
| 82 | + steps: |
| 83 | + - name: Checkout repository |
| 84 | + uses: actions/checkout@v5 |
| 85 | + |
| 86 | + - name: Cache Astro data |
| 87 | + uses: actions/cache@v4 |
| 88 | + with: |
| 89 | + path: | |
| 90 | + **/.astro |
| 91 | + key: smc-astro-cache-${{ github.repository }} |
| 92 | + |
| 93 | + - name: Setup pnpm |
| 94 | + uses: pnpm/action-setup@v4 |
| 95 | + |
| 96 | + - name: Setup Node.js |
| 97 | + uses: actions/setup-node@v5 |
| 98 | + with: |
| 99 | + node-version: 22.x |
| 100 | + cache: "pnpm" |
| 101 | + cache-dependency-path: "./pnpm-lock.yaml" |
| 102 | + |
| 103 | + - name: Install dependencies |
| 104 | + run: pnpm install --frozen-lockfile |
| 105 | + |
| 106 | + - name: Build extension |
| 107 | + run: pnpm dash build |
| 108 | + |
| 109 | + - name: Upload extension |
| 110 | + uses: actions/upload-artifact@v4 |
| 111 | + with: |
| 112 | + name: SMC Dashboard ${{ github.sha }} |
| 113 | + path: ./apps/dashboard/dist |
| 114 | + |
| 115 | + api: |
| 116 | + name: Build API |
| 117 | + runs-on: ubuntu-latest |
| 118 | + steps: |
| 119 | + - name: Checkout repository |
| 120 | + uses: actions/checkout@v5 |
| 121 | + |
| 122 | + - name: Cache Astro data # Speeds up postinstall time |
| 123 | + uses: actions/cache@v4 |
| 124 | + with: |
| 125 | + path: | |
| 126 | + **/.astro |
| 127 | + key: smc-astro-cache-${{ github.repository }} |
| 128 | + |
| 129 | + - name: Setup pnpm |
| 130 | + uses: pnpm/action-setup@v4 |
| 131 | + |
| 132 | + - name: Setup Node.js |
| 133 | + uses: actions/setup-node@v5 |
| 134 | + with: |
| 135 | + node-version: 22.x |
| 136 | + cache: "pnpm" |
| 137 | + cache-dependency-path: "./pnpm-lock.yaml" |
| 138 | + |
| 139 | + - name: Install dependencies |
| 140 | + run: pnpm install --frozen-lockfile |
| 141 | + |
| 142 | + - name: Build extension |
| 143 | + run: pnpm api build |
| 144 | + |
| 145 | + - name: Upload extension |
| 146 | + uses: actions/upload-artifact@v4 |
| 147 | + with: |
| 148 | + name: SMC API ${{ github.sha }} |
| 149 | + path: ./apps/api/dist |
0 commit comments