appback-remoteagent 0.22.0 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/RELEASING.md +1 -1
- package/package.json +1 -1
- package/scripts/release-publish.sh +16 -1
package/docs/RELEASING.md
CHANGED
|
@@ -74,7 +74,7 @@ The publish script performs:
|
|
|
74
74
|
- `npm run build`
|
|
75
75
|
- `npm pack`
|
|
76
76
|
- guarded `npm publish`
|
|
77
|
-
-
|
|
77
|
+
- exact published version and `latest` dist-tag verification with bounded propagation retries
|
|
78
78
|
|
|
79
79
|
The package publish entrypoint is `npm run release:publish`.
|
|
80
80
|
`scripts/prepublish-guard.mjs` routes manual publish attempts back to that entrypoint.
|
package/package.json
CHANGED
|
@@ -57,4 +57,19 @@ REMOTEAGENT_PUBLISH_GUARD_OK=1 npm publish "$TARBALL" --access public
|
|
|
57
57
|
|
|
58
58
|
echo
|
|
59
59
|
echo "Verifying registry version:"
|
|
60
|
-
|
|
60
|
+
PUBLISHED_VERSION=""
|
|
61
|
+
LATEST_VERSION=""
|
|
62
|
+
for ATTEMPT in {1..12}; do
|
|
63
|
+
PUBLISHED_VERSION="$(npm view "$PACKAGE_NAME@$VERSION" version --prefer-online 2>/dev/null || true)"
|
|
64
|
+
LATEST_VERSION="$(npm view "$PACKAGE_NAME@latest" version --prefer-online 2>/dev/null || true)"
|
|
65
|
+
echo "attempt=$ATTEMPT published=${PUBLISHED_VERSION:-missing} latest=${LATEST_VERSION:-missing}"
|
|
66
|
+
if [[ "$PUBLISHED_VERSION" == "$VERSION" && "$LATEST_VERSION" == "$VERSION" ]]; then
|
|
67
|
+
break
|
|
68
|
+
fi
|
|
69
|
+
sleep 5
|
|
70
|
+
done
|
|
71
|
+
|
|
72
|
+
if [[ "$PUBLISHED_VERSION" != "$VERSION" || "$LATEST_VERSION" != "$VERSION" ]]; then
|
|
73
|
+
echo "Registry verification failed: expected published/latest=$VERSION" >&2
|
|
74
|
+
exit 1
|
|
75
|
+
fi
|