|
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: Setup pnpm |
15 | | - uses: pnpm/action-setup@v4 |
16 | | - |
17 | | - - name: Setup Node.js |
18 | | - uses: actions/setup-node@v5 |
19 | | - with: |
20 | | - node-version: 22.x |
21 | | - cache: "pnpm" |
22 | | - cache-dependency-path: "./pnpm-lock.yaml" |
23 | | - |
24 | | - - name: Install dependencies |
25 | | - run: pnpm install --frozen-lockfile |
26 | | - |
27 | | - - name: Build extension |
28 | | - run: pnpm ext build |
29 | | - |
30 | | - - name: Upload extension |
31 | | - uses: actions/upload-artifact@v4 |
32 | | - with: |
33 | | - name: SMC Extension ${{ github.sha }} |
34 | | - path: ./apps/extension/dist |
35 | | - |
36 | | - dashboard: |
37 | | - name: Build dashboard |
38 | | - runs-on: ubuntu-latest |
39 | | - steps: |
40 | | - - name: Checkout repository |
41 | | - uses: actions/checkout@v5 |
42 | | - |
43 | | - - name: Setup pnpm |
44 | | - uses: pnpm/action-setup@v4 |
45 | | - |
46 | | - - name: Setup Node.js |
47 | | - uses: actions/setup-node@v5 |
48 | | - with: |
49 | | - node-version: 22.x |
50 | | - cache: "pnpm" |
51 | | - cache-dependency-path: "./pnpm-lock.yaml" |
52 | | - |
53 | | - - name: Install dependencies |
54 | | - run: pnpm install --frozen-lockfile |
55 | | - |
56 | | - - name: Build extension |
57 | | - run: pnpm dash build |
58 | | - |
59 | | - - name: Upload extension |
60 | | - uses: actions/upload-artifact@v4 |
61 | | - with: |
62 | | - name: SMC Dashboard ${{ github.sha }} |
63 | | - path: ./apps/dashboard/dist |
64 | | - api: |
65 | | - name: Build API |
66 | | - runs-on: ubuntu-latest |
67 | | - steps: |
68 | | - - name: Checkout repository |
69 | | - uses: actions/checkout@v5 |
70 | | - |
71 | | - - name: Setup pnpm |
72 | | - uses: pnpm/action-setup@v4 |
73 | | - |
74 | | - - name: Setup Node.js |
75 | | - uses: actions/setup-node@v5 |
76 | | - with: |
77 | | - node-version: 22.x |
78 | | - cache: "pnpm" |
79 | | - cache-dependency-path: "./pnpm-lock.yaml" |
80 | | - |
81 | | - - name: Install dependencies |
82 | | - run: pnpm install --frozen-lockfile |
83 | | - |
84 | | - - name: Build extension |
85 | | - run: pnpm api build |
86 | | - |
87 | | - - name: Upload extension |
88 | | - uses: actions/upload-artifact@v4 |
89 | | - with: |
90 | | - name: SMC API ${{ github.sha }} |
91 | | - 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