Skip to content

Commit 841772c

Browse files
committed
chore(ci): fix
1 parent 0d223a6 commit 841772c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/nuxthub.yml renamed to .github/workflows/playground.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
name: Deploy Playground to NuxtHub
1+
name: Deploy Playground
22
on: push
33

44
jobs:
55
deploy:
6-
name: "Deploy to NuxtHub"
6+
name: "Deploy Playground"
77
runs-on: ubuntu-latest
88
environment:
99
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
1010
url: ${{ steps.deploy.outputs.deployment-url }}
1111
permissions:
1212
contents: read
1313
id-token: write
14+
defaults:
15+
run:
16+
working-directory: playground
1417
steps:
1518
- uses: actions/checkout@v4
1619

@@ -30,7 +33,7 @@ jobs:
3033
run: pnpx nuxthub@latest ensure
3134

3235
- name: Build playground
33-
run: pnpm dev:prepare && pnpm dev:build
36+
run: pnpm build
3437

3538
- name: Deploy to NuxtHub
3639
uses: nuxt-hub/action@v1

playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"nuxt": "^3.13.2"
99
},
1010
"scripts": {
11+
"postinstall": "pnpm -C .. run dev:prepare",
1112
"dev": "nuxi dev",
1213
"build": "nuxi build"
1314
}

0 commit comments

Comments
 (0)