Skip to content

Commit 4b3dd48

Browse files
chore(deps): update nuxt-hub/action action to v2 (v3) (#4315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benjamin Canac <[email protected]>
1 parent a9e8ea9 commit 4b3dd48

File tree

4 files changed

+13
-24
lines changed

4 files changed

+13
-24
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ jobs:
66
deploy:
77
runs-on: ${{ matrix.os }}
88

9-
environment:
10-
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
11-
url: ${{ steps.deploy.outputs.deployment-url }}
12-
139
permissions:
1410
contents: read
1511
id-token: write
@@ -40,14 +36,10 @@ jobs:
4036
- name: Prepare build
4137
run: pnpm run dev:prepare
4238

43-
- name: Build application
44-
run: pnpm run docs:build
39+
- name: Deploy to NuxtHub
40+
uses: nuxt-hub/action@v2
4541
env:
4642
NODE_OPTIONS: '--max-old-space-size=8192'
47-
48-
- name: Deploy to NuxtHub
49-
uses: nuxt-hub/action@v1
50-
id: deploy
5143
with:
5244
project-key: ui-7eg3
53-
directory: docs/dist
45+
directory: docs

.github/workflows/playground.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ jobs:
99
deploy:
1010
runs-on: ${{ matrix.os }}
1111

12-
environment:
13-
name: ${{ github.ref == 'refs/heads/v3' && 'production' || 'preview' }}
14-
url: ${{ steps.deploy.outputs.deployment-url }}
15-
1612
permissions:
1713
contents: read
1814
id-token: write
@@ -40,14 +36,10 @@ jobs:
4036
- name: Prepare build
4137
run: pnpm run dev:prepare
4238

43-
- name: Build application
44-
run: pnpm run dev:build
45-
env:
46-
NITRO_PRESET: cloudflare-pages
47-
4839
- name: Deploy to NuxtHub
49-
uses: nuxt-hub/action@v1
50-
id: deploy
40+
uses: nuxt-hub/action@v2
41+
env:
42+
NODE_OPTIONS: '--max-old-space-size=8192'
5143
with:
5244
project-key: ui3-playground-pb9b
53-
directory: playground/dist
45+
directory: playground

docs/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
"private": true,
33
"name": "@nuxt/ui-docs",
44
"type": "module",
5+
"scripts": {
6+
"dev": "nuxt dev",
7+
"build": "nuxt build",
8+
"generate": "nuxt generate",
9+
"typecheck": "nuxt typecheck"
10+
},
511
"dependencies": {
612
"@ai-sdk/vue": "^1.2.12",
713
"@iconify-json/logos": "^1.2.4",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@
103103
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground && nuxt prepare docs && vite build playground-vue",
104104
"docs": "nuxt dev docs --uiDev",
105105
"docs:build": "nuxt build docs",
106-
"docs:prepare": "nuxt-component-meta docs",
107106
"lint": "eslint .",
108107
"lint:fix": "eslint . --fix",
109108
"typecheck": "vue-tsc --noEmit && nuxt typecheck playground && nuxt typecheck docs && cd playground-vue && vue-tsc --noEmit",

0 commit comments

Comments
 (0)