From 90deb78ed63a259aa184c58141aeffa26c3e3896 Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Thu, 6 Jun 2024 20:32:51 -0700 Subject: [PATCH] ci(runtime): add runtime git action (#1667) --- .github/workflows/dispatch-renderless-theme-publish.yml | 6 +++++- package.json | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dispatch-renderless-theme-publish.yml b/.github/workflows/dispatch-renderless-theme-publish.yml index 822d910bb..3c69148ac 100644 --- a/.github/workflows/dispatch-renderless-theme-publish.yml +++ b/.github/workflows/dispatch-renderless-theme-publish.yml @@ -7,7 +7,7 @@ on: components: description: | 输入需要打包的模块名称,多个以英文逗号分隔, - 例如: `theme,renderless` + 例如: `theme,renderless,runtime` required: true type: string concurrency: @@ -80,6 +80,10 @@ jobs: if: contains(inputs.components, 'theme-mobile') == true run: pnpm build:themeMobile + - name: Run Build Runtime + if: contains(inputs.components, 'runtime') == true + run: pnpm build:runtime + - name: Publish run: | pnpm pub:all diff --git a/package.json b/package.json index 1797d234a..561800316 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,8 @@ "pub:themeMobile": "pnpm --filter=\"./packages/theme-mobile/dist/\" publish --no-git-checks --access=public", "pub:themeSaas": "pnpm --filter=\"./packages/theme-saas/dist\" publish --no-git-checks --access=public", "pub:renderless": "pnpm --filter=\"./packages/renderless/dist\" publish --no-git-checks --access=public", - "pub:all": "pnpm pub2 && pnpm pub3 && pnpm pub:theme && pnpm pub:themeMobile && pnpm pub:themeSaas && pnpm pub:renderless", + "pub:runtime": "pnpm --filter=\"./packages/vue-runtime/\" publish --no-git-checks --access=public", + "pub:all": "pnpm pub2 && pnpm pub3 && pnpm pub:theme && pnpm pub:themeMobile && pnpm pub:themeSaas && pnpm pub:renderless && pub:runtime", "pub:site": "pnpm -C examples/sites pub", "// ---------- 自动化发测试包 ----------": "", "auto-build-pub": "pnpm -C internals/automate auto-build-pub",