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
16 changes: 12 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,18 @@ jobs:
echo "✅ Published @mrjasonroy/cache-components-cache-handler@$PACKAGE_VERSION"
echo "📦 npm dist-tag: $DIST_TAG"

# Wait a moment for npm to propagate
sleep 5

npm view @mrjasonroy/cache-components-cache-handler@$PACKAGE_VERSION
# Poll until the new version is queryable; registry propagation can lag
# well past a few seconds. The publish step already succeeded, so a slow
# read must NOT fail the job (that would skip the GitHub Release step).
for i in $(seq 1 12); do
if npm view "@mrjasonroy/cache-components-cache-handler@$PACKAGE_VERSION" version >/dev/null 2>&1; then
echo "✅ Verified on npm (attempt $i)"
npm view "@mrjasonroy/cache-components-cache-handler@$PACKAGE_VERSION"
break
fi
echo "… not visible yet, retrying ($i/12)"
sleep 10
done

- name: Create GitHub Release
env:
Expand Down
Loading