From 9024ee7da02db2156644ee58e93292bf74112854 Mon Sep 17 00:00:00 2001 From: unknown <348063288@qq.com> Date: Sat, 9 Sep 2023 18:04:17 +0800 Subject: [PATCH] . --- .github/workflows/publish.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a9f5eaff..9de5710b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,6 +19,7 @@ jobs: run: | cd $GITHUB_WORKSPACE npm i + npm run publish node build-script/pack-ccx.mjs --version ${{ github.event.inputs.tag_name }} - name: Create Release diff --git a/package.json b/package.json index 16ed68d3..9651aa2c 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "test": "echo \"Error: no test specified\" && exit 1", "watch": "npx webpack --config ./build-script/webpack.config.js --watch", "build": "npx webpack --config ./build-script/webpack.config.js", + "publish": "npx webpack --config ./build-script/webpack.config.js --mode production", "format": "npx prettier -w typescripts" }, "repository": {