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
11 changes: 8 additions & 3 deletions .github/workflows/Verify-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
alpine:
name: npm install on Alpine - node@${{ matrix.node }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
Expand All @@ -38,12 +39,16 @@ jobs:
fi
done
npm init -y
for attempt in 1 2 3 4 5; do
if npm install --ignore-scripts --include=optional --registry=https://registry.npmjs.org "@vooya/fs@$PACKAGE_VERSION"; then
# npm can accept publication before either package is queryable.
# Wait for both manifests before npm creates an optional-dependency lockfile.
for attempt in $(seq 1 40); do
if npm view --prefer-online --registry=https://registry.npmjs.org "@vooya/fs@$PACKAGE_VERSION" version &&
npm view --prefer-online --registry=https://registry.npmjs.org "@vooya/fs-linux-x64-musl@$PACKAGE_VERSION" version; then
break
fi
if [ "$attempt" = 5 ]; then exit 1; fi
if [ "$attempt" = 40 ]; then exit 1; fi
sleep 15
done
npm install --ignore-scripts --include=optional --prefer-online --registry=https://registry.npmjs.org "@vooya/fs@$PACKAGE_VERSION"
node verify-npm.cjs
'
Loading