Repository navigation
Add typed JSON output to app release - #8820
Conversation
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
59f5ccc to
f1732c7
Compare
|
/snapit |
|
The snapshot requested by @isaacroldan for |
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
9c0de55 to
126d935
Compare
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
|
/snapit |
|
🫰✨ Thanks @gonzaloriestra! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
|
/snapit |
|
🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm. Built from Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/[email protected]Caution After installing, validate the version by running |
Comment addressed, PR approved by Gonzalo
WHY are these changes introduced?
Let scripts read app release outcomes. Related to #23668.
WHAT is this pull request doing?
Add
--jsonwith validated release data and shared fatal errors. Declined confirmation returns{"status":"cancelled"}and exits zero. Keep the existing text banners, including the missing-version headline and styled version tag. Reject missing release confirmation and retain API user errors.Text:
Version released to users.with av1link.{"status":"success","app":{"name":"Example","clientId":"client-id"},"release":{"version":{"gid":"gid://shopify/Version/123","name":"v1","message":null,"url":"https://dev.shopify.com/dashboard/1/apps/1/versions/123"}}}How to manually test your changes?
Use a disposable test app with an existing version.
shopify app release --version <version> --allow-updates --allow-deletes --json --no-input > result.json 2> events.jsonl. Check one release result and stderr progress. Repeat without--jsonto compare the existing banner.--json. Expect the same missing-version message and a nonzero exit; JSON mode returns one error object. In a terminal, omit the allow flags and decline confirmation; expect one cancelled result and exit zero.shopify app release --json-schemato inspect the contract.Checklist
patchfor bug fixes ·minorfor new features ·majorfor breaking changes) and added a changeset withpnpm changeset add