Skip to content

Commit a92c602

Browse files
chore(github): use templates in module workflow (#4867)
1 parent 6c66097 commit a92c602

File tree

1 file changed

+321
-6
lines changed

1 file changed

+321
-6
lines changed

.github/workflows/module.yml

Lines changed: 321 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
if: matrix.os == 'ubuntu-latest'
7070
run: pnpx pkg-pr-new publish --compact --no-template --pnpm
7171

72-
playground-nuxt:
72+
playground:
7373
needs: build
7474

7575
runs-on: ${{ matrix.os }}
@@ -116,7 +116,7 @@ jobs:
116116
- name: Typecheck
117117
run: pnpm run typecheck
118118

119-
starter-nuxt:
119+
starter:
120120
needs: build
121121

122122
runs-on: ${{ matrix.os }}
@@ -134,7 +134,7 @@ jobs:
134134
- name: Checkout
135135
uses: actions/checkout@v5
136136
with:
137-
repository: nuxtlabs/nuxt-ui-starter
137+
repository: nuxt-ui-templates/starter
138138

139139
- name: Store commit SHA
140140
run: |
@@ -146,7 +146,7 @@ jobs:
146146
- name: Install node
147147
uses: actions/setup-node@v4
148148
with:
149-
node-version: 22
149+
node-version: ${{ matrix.node }}
150150
cache: pnpm
151151

152152
- name: Install latest nuxt/ui
@@ -179,7 +179,7 @@ jobs:
179179
- name: Checkout
180180
uses: actions/checkout@v5
181181
with:
182-
repository: nuxtlabs/nuxt-ui-vue-starter
182+
repository: nuxt-ui-templates/starter-vue
183183

184184
- name: Store commit SHA
185185
run: |
@@ -191,7 +191,322 @@ jobs:
191191
- name: Install node
192192
uses: actions/setup-node@v4
193193
with:
194-
node-version: 22
194+
node-version: ${{ matrix.node }}
195+
cache: pnpm
196+
197+
- name: Install latest nuxt/ui
198+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
199+
200+
- name: Install dependencies
201+
run: pnpm install
202+
203+
- name: Build
204+
run: pnpm run build
205+
206+
- name: Typecheck
207+
run: pnpm run typecheck
208+
209+
landing:
210+
needs: build
211+
212+
runs-on: ${{ matrix.os }}
213+
214+
permissions:
215+
contents: read
216+
pull-requests: read
217+
218+
strategy:
219+
matrix:
220+
os: [ubuntu-latest] # macos-latest, windows-latest
221+
node: [22]
222+
223+
steps:
224+
- name: Checkout
225+
uses: actions/checkout@v5
226+
with:
227+
repository: nuxt-ui-templates/landing
228+
229+
- name: Store commit SHA
230+
run: |
231+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
232+
233+
- name: Install pnpm
234+
uses: pnpm/action-setup@v4
235+
236+
- name: Install node
237+
uses: actions/setup-node@v4
238+
with:
239+
node-version: ${{ matrix.node }}
240+
cache: pnpm
241+
242+
- name: Install latest nuxt/ui
243+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
244+
245+
- name: Install dependencies
246+
run: pnpm install
247+
248+
- name: Typecheck
249+
run: pnpm run typecheck
250+
251+
- name: Build
252+
run: pnpm run build
253+
254+
docs:
255+
needs: build
256+
257+
runs-on: ${{ matrix.os }}
258+
259+
permissions:
260+
contents: read
261+
pull-requests: read
262+
263+
strategy:
264+
matrix:
265+
os: [ubuntu-latest] # macos-latest, windows-latest
266+
node: [22]
267+
268+
steps:
269+
- name: Checkout
270+
uses: actions/checkout@v5
271+
with:
272+
repository: nuxt-ui-templates/docs
273+
274+
- name: Store commit SHA
275+
run: |
276+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
277+
278+
- name: Install pnpm
279+
uses: pnpm/action-setup@v4
280+
281+
- name: Install node
282+
uses: actions/setup-node@v4
283+
with:
284+
node-version: ${{ matrix.node }}
285+
cache: pnpm
286+
287+
- name: Install latest nuxt/ui
288+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
289+
290+
- name: Install dependencies
291+
run: pnpm install
292+
293+
- name: Typecheck
294+
run: pnpm run typecheck
295+
296+
- name: Build
297+
run: pnpm run build
298+
299+
saas:
300+
needs: build
301+
302+
runs-on: ${{ matrix.os }}
303+
304+
permissions:
305+
contents: read
306+
pull-requests: read
307+
308+
strategy:
309+
matrix:
310+
os: [ubuntu-latest] # macos-latest, windows-latest
311+
node: [22]
312+
313+
steps:
314+
- name: Checkout
315+
uses: actions/checkout@v5
316+
with:
317+
repository: nuxt-ui-templates/saas
318+
319+
- name: Store commit SHA
320+
run: |
321+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
322+
323+
- name: Install pnpm
324+
uses: pnpm/action-setup@v4
325+
326+
- name: Install node
327+
uses: actions/setup-node@v4
328+
with:
329+
node-version: ${{ matrix.node }}
330+
cache: pnpm
331+
332+
- name: Install latest nuxt/ui
333+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
334+
335+
- name: Install dependencies
336+
run: pnpm install
337+
338+
- name: Typecheck
339+
run: pnpm run typecheck
340+
341+
- name: Build
342+
run: pnpm run build
343+
344+
dashboard:
345+
needs: build
346+
347+
runs-on: ${{ matrix.os }}
348+
349+
permissions:
350+
contents: read
351+
pull-requests: read
352+
353+
strategy:
354+
matrix:
355+
os: [ubuntu-latest] # macos-latest, windows-latest
356+
node: [22]
357+
358+
steps:
359+
- name: Checkout
360+
uses: actions/checkout@v5
361+
with:
362+
repository: nuxt-ui-templates/dashboard
363+
364+
- name: Store commit SHA
365+
run: |
366+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
367+
368+
- name: Install pnpm
369+
uses: pnpm/action-setup@v4
370+
371+
- name: Install node
372+
uses: actions/setup-node@v4
373+
with:
374+
node-version: ${{ matrix.node }}
375+
cache: pnpm
376+
377+
- name: Install latest nuxt/ui
378+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
379+
380+
- name: Install dependencies
381+
run: pnpm install
382+
383+
- name: Typecheck
384+
run: pnpm run typecheck
385+
386+
- name: Build
387+
run: pnpm run build
388+
389+
dashboard-vue:
390+
needs: build
391+
392+
runs-on: ${{ matrix.os }}
393+
394+
permissions:
395+
contents: read
396+
pull-requests: read
397+
398+
strategy:
399+
matrix:
400+
os: [ubuntu-latest] # macos-latest, windows-latest
401+
node: [22]
402+
403+
steps:
404+
- name: Checkout
405+
uses: actions/checkout@v5
406+
with:
407+
repository: nuxt-ui-templates/dashboard-vue
408+
409+
- name: Store commit SHA
410+
run: |
411+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
412+
413+
- name: Install pnpm
414+
uses: pnpm/action-setup@v4
415+
416+
- name: Install node
417+
uses: actions/setup-node@v4
418+
with:
419+
node-version: ${{ matrix.node }}
420+
cache: pnpm
421+
422+
- name: Install latest nuxt/ui
423+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
424+
425+
- name: Install dependencies
426+
run: pnpm install
427+
428+
- name: Build
429+
run: pnpm run build
430+
431+
- name: Typecheck
432+
run: pnpm run typecheck
433+
434+
chat:
435+
needs: build
436+
437+
runs-on: ${{ matrix.os }}
438+
439+
permissions:
440+
contents: read
441+
pull-requests: read
442+
443+
strategy:
444+
matrix:
445+
os: [ubuntu-latest] # macos-latest, windows-latest
446+
node: [22]
447+
448+
steps:
449+
- name: Checkout
450+
uses: actions/checkout@v5
451+
with:
452+
repository: nuxt-ui-templates/chat
453+
454+
- name: Store commit SHA
455+
run: |
456+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
457+
458+
- name: Install pnpm
459+
uses: pnpm/action-setup@v4
460+
461+
- name: Install node
462+
uses: actions/setup-node@v4
463+
with:
464+
node-version: ${{ matrix.node }}
465+
cache: pnpm
466+
467+
- name: Install latest nuxt/ui
468+
run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only
469+
470+
- name: Install dependencies
471+
run: pnpm install
472+
473+
- name: Typecheck
474+
run: pnpm run typecheck
475+
476+
- name: Build
477+
run: pnpm run build
478+
479+
portfolio:
480+
needs: build
481+
482+
runs-on: ${{ matrix.os }}
483+
484+
permissions:
485+
contents: read
486+
pull-requests: read
487+
488+
strategy:
489+
matrix:
490+
os: [ubuntu-latest] # macos-latest, windows-latest
491+
node: [22]
492+
493+
steps:
494+
- name: Checkout
495+
uses: actions/checkout@v5
496+
with:
497+
repository: nuxt-ui-templates/portfolio
498+
499+
- name: Store commit SHA
500+
run: |
501+
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.head.sha || github.sha }} | cut -c1-7)" >> $GITHUB_ENV
502+
503+
- name: Install pnpm
504+
uses: pnpm/action-setup@v4
505+
506+
- name: Install node
507+
uses: actions/setup-node@v4
508+
with:
509+
node-version: ${{ matrix.node }}
195510
cache: pnpm
196511

197512
- name: Install latest nuxt/ui

0 commit comments

Comments
 (0)