From bafd1d6d5655174ce8f9c7e36948666a632163cd Mon Sep 17 00:00:00 2001 From: Ken Kieu Date: Wed, 11 Dec 2024 23:12:49 -0800 Subject: [PATCH] Fix build docs --- .github/workflows/docs.yml | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4786d47..cfea335 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -16,6 +16,7 @@ jobs: node-version: '20' # Pick your own package manager and build script - run: npm install + - run: npm run dev:prepare - run: npm run docs:build --preset github_pages - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/package.json b/package.json index 6c67270..bf1112b 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "docs:build": "nuxi build docs", "dev:vite": "cd vite && vite", "dev:build": "nuxi build playground", - "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build", + "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs", "release": "npm run prepack && changelogen --release && npm publish && git push --follow-tags", "lint": "eslint .", "test": "vitest run",