diff --git a/.github/workflows/dispatch-publish.yml b/.github/workflows/dispatch-publish.yml index 28f755a..26ad927 100644 --- a/.github/workflows/dispatch-publish.yml +++ b/.github/workflows/dispatch-publish.yml @@ -71,8 +71,8 @@ jobs: # 步骤8: 发布组件到NPM - name: Publish components run: | - pnpm --filter @opentiny/vue-mobile publish --tag ${{ inputs.tag }} --access=public --no-git-checks - pnpm -C packages/mobile/dist publish --tag ${{ inputs.tag }} --access=public --no-git-checks + pnpm pub --tag ${{ inputs.tag }} + pnpm pub:theme --tag ${{ inputs.tag }} env: # 使用NPM令牌进行身份验证 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 1747c8d..77280c1 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "dev": "pnpm -C sites start:mobile", "preSite": "node ./script/preSite.js", "build": "pnpm -C packages/mobile build", - "pub": "pnpm -C packages/mobile publish --no-git-checks --access=public", + "pub": "pnpm --filter=@opentiny/vue-mobile publish --no-git-checks --access=public", "build:theme": "pnpm -C packages/theme-mobile build:fast", - "pub:theme": "pnpm -C packages/mobile/dist publish --no-git-checks --access=public" + "pub:theme": "pnpm --filter=\"./packages/theme-mobile/dist\" publish --access=public --no-git-checks" }, "dependencies": { "@vue/composition-api": "1.7.2", diff --git a/packages/mobile/package.json b/packages/mobile/package.json index 7cbfe1c..ea58309 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -1,7 +1,7 @@ { "name": "@opentiny/vue-mobile", "type": "module", - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.9", "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", "author": "OpenTiny Team", "license": "MIT", diff --git a/packages/theme-mobile/package.json b/packages/theme-mobile/package.json index 567171e..c4473e5 100644 --- a/packages/theme-mobile/package.json +++ b/packages/theme-mobile/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/vue-theme-mobile", - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.9", "description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", "homepage": "https://opentiny.design/tiny-vue", "main": "index.css",