From fea17abfed9b90dea59415524d032c1e4b62d800 Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 13 Nov 2023 00:11:37 +0200 Subject: [PATCH] refactor(gh-actions): fix docs generation flow to use bundled artifact --- .github/workflows/antmarky.yml | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/antmarky.yml b/.github/workflows/antmarky.yml index 618cc84..cf7cbc4 100644 --- a/.github/workflows/antmarky.yml +++ b/.github/workflows/antmarky.yml @@ -75,6 +75,7 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist generate-release: name: 📦 Generate GitHub Release diff --git a/package.json b/package.json index a4cd94b..c1156e4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ }, "scripts": { "start": "rm -rf bin/ && tsx ./esbuild.config.mjs -- development", - "bundle": "rm -rf bin/ && tsx ./esbuild.config.mjs -- production", + "bundle": "tsx ./esbuild.config.mjs -- production", + "build": "npm run bundle && node ./bin/index.cjs build", "lint": "semistandard", "test": "vitest", "bump": "node bump-version.js",