Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/publish-preview-register.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@ jobs:
# resolves, so an attacker-supplied value would change what installs
# for a different PR.
pr-url: ${{ needs.authorize.outputs.pr-url }}
# Must match the build workflow's pack step, which validates the same
# batch. The bridge's own WORKSPACE_PACKAGES must also allow each name.
workspace-packages: vite-plus,create-vite-plus,@voidzero-dev/vite-plus-*

# Sticky comment with the resolved versions and per-package-manager registry
# config. Separate job: it needs write permissions, and SR-5 keeps those away
Expand Down Expand Up @@ -383,6 +386,7 @@ jobs:
'| --- | --- |',
`| \`vite-plus\` | \`${version}\` |`,
`| \`@voidzero-dev/vite-plus-core\` | \`${version}\` |`,
`| \`create-vite-plus\` | \`${version}\` |`,
'',
'**Install the Vite+ CLI built from this commit, then migrate a project:**',
'',
Expand Down Expand Up @@ -414,6 +418,19 @@ jobs:
'vp migrate',
'```',
'',
'**Or create a new project from this commit without installing the CLI:**',
'',
'```bash',
`export npm_config_registry=${bridge} pnpm_config_registry=${bridge}`,
`pnpm create vite-plus@${version} # or: npm create vite-plus@${version}`,
'```',
'```powershell',
`$env:npm_config_registry="${bridge}"; $env:pnpm_config_registry="${bridge}"`,
`pnpm create vite-plus@${version} # or: npm create vite-plus@${version}`,
'```',
'',
'pnpm 11+ reads `pnpm_config_registry`, npm and older pnpm read `npm_config_registry`. The new project pins this build, so keep the registry set for later installs, or configure it as below.',
'',
`**Or** point your package manager at the bridge registry \`${bridge}\`:`,
'',
'| Package manager | Registry config |',
Expand Down
Loading