Skip to content

Commit bba8ab8

Browse files
committed
bug: wait for the new xslint to propagate to npm
The cascade fired seconds after xslint published 0.0.11, before npm made it installable, so 'npm install @maxonfjvipon/xslint@0.0.11' failed with ETARGET. Poll 'npm view' until the version resolves before installing.
1 parent aa3c503 commit bba8ab8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/cascade.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
echo "Already depends on ${NEW}; nothing to do"
3333
exit 0
3434
fi
35+
echo "waiting for @maxonfjvipon/xslint@${NEW} to propagate to npm"
36+
for i in $(seq 1 30); do
37+
test -n "$(npm view "@maxonfjvipon/xslint@${NEW}" version 2>/dev/null)" && break
38+
sleep 10
39+
done
3540
npm install --save "@maxonfjvipon/xslint@^${NEW}"
3641
echo "changed=true" >> "${GITHUB_OUTPUT}"
3742
- name: Validate against the new xslint

0 commit comments

Comments
 (0)