diff --git a/.github/workflows/prepare_release.yml b/.github/workflows/prepare_release.yml index b900a139a8..f8dd28923b 100644 --- a/.github/workflows/prepare_release.yml +++ b/.github/workflows/prepare_release.yml @@ -54,6 +54,7 @@ jobs: } update_json packages/cli/package.json update_json packages/core/package.json + update_json packages/prompts/package.json update_toml packages/cli/binding/Cargo.toml update_toml crates/vp_global_cli/Cargo.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f1121218a..7a77bcfd00 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,6 +112,12 @@ jobs: pattern: core merge-multiple: true + - name: Download prompts dist + uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: prompts + path: packages/prompts/dist + - name: Download LICENSE files uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: @@ -164,6 +170,13 @@ jobs: - name: Prepare and publish native addons run: node ./packages/cli/publish-native-addons.ts --mode npm + - name: Publish prompts + run: >- + node ./.github/scripts/publish-npm-package.ts + "@voidzero-dev/vite-plus-prompts@${VERSION}" + -- + pnpm publish --filter=./packages/prompts --tag latest --access public --no-git-checks + - name: Publish core dependency tier run: >- node ./.github/scripts/publish-npm-package.ts @@ -186,8 +199,11 @@ jobs: pnpm publish --filter=./packages/cli --tag latest --access public --no-git-checks # Downstream jobs build Docker images by installing this release from npm. - - name: Wait for Vite+ to propagate - run: node ./.github/scripts/wait-for-npm-packages.ts "vite-plus@${VERSION}" + - name: Wait for published packages to propagate + run: >- + node ./.github/scripts/wait-for-npm-packages.ts + "vite-plus@${VERSION}" + "@voidzero-dev/vite-plus-prompts@${VERSION}" - name: Create release body env: