(name, version)
| 97 | } |
| 98 | |
| 99 | async function assertPublished(name, version) { |
| 100 | const response = await fetch(`${REGISTRY_URL}/${name}/${version}`) |
| 101 | |
| 102 | if (response.status === 404) { |
| 103 | fail( |
| 104 | `${name}@${version} is not on the registry. A local dev publish needs the same-commit dev release of every pinned workspace dependency; push the commit, let the publish workflow finish, then rerun.`, |
| 105 | ) |
| 106 | } |
| 107 | |
| 108 | if (!response.ok) { |
| 109 | fail(`Registry lookup for ${name}@${version} failed with status ${response.status}`) |
| 110 | } |
| 111 | |
| 112 | log(`Verified ${name}@${version} exists on the registry`) |
| 113 | } |
| 114 | |
| 115 | function log(message) { |
| 116 | console.log(`[stamp-dev-version] ${message}`) |
no test coverage detected