svf-lib 1.0.2655 → 1.0.2656
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.
|
@@ -36,21 +36,38 @@ jobs:
|
|
|
36
36
|
|
|
37
37
|
- name: Verify published package
|
|
38
38
|
run: |
|
|
39
|
+
PKG=$(node -p "require('./package.json').name")
|
|
39
40
|
VERSION=$(node -p "require('./package.json').version")
|
|
40
|
-
echo "Checking svf-lib@$VERSION on npm..."
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
echo "Checking $PKG@$VERSION on npm..."
|
|
43
|
+
|
|
44
|
+
for i in {1..20}; do
|
|
45
|
+
if npm view "$PKG@$VERSION" version >/dev/null 2>&1; then
|
|
46
|
+
echo "$PKG@$VERSION is visible on npm."
|
|
47
|
+
break
|
|
48
|
+
fi
|
|
49
|
+
echo "Package version not visible yet, retrying in 10s..."
|
|
50
|
+
sleep 10
|
|
51
|
+
done
|
|
52
|
+
|
|
53
|
+
echo "Downloading published tarball..."
|
|
54
|
+
|
|
55
|
+
for i in {1..20}; do
|
|
56
|
+
if TARBALL=$(npm pack "$PKG@$VERSION" --silent 2>/dev/null); then
|
|
57
|
+
echo "Downloaded tarball: $TARBALL"
|
|
44
58
|
break
|
|
45
59
|
fi
|
|
46
|
-
echo "
|
|
60
|
+
echo "Tarball not ready yet, retrying in 10s..."
|
|
47
61
|
sleep 10
|
|
48
62
|
done
|
|
49
63
|
|
|
50
|
-
|
|
64
|
+
if [ ! -f "$TARBALL" ]; then
|
|
65
|
+
echo "Failed to download published tarball for $PKG@$VERSION"
|
|
66
|
+
exit 1
|
|
67
|
+
fi
|
|
51
68
|
|
|
52
69
|
echo "Listing published tarball contents..."
|
|
53
|
-
tar -tzf
|
|
70
|
+
tar -tzf "$TARBALL" | tee published-files.txt
|
|
54
71
|
|
|
55
72
|
echo "Checking Linux x64 binary..."
|
|
56
73
|
grep -E 'SVF-linux-x86_64|linux.*x64|linux.*x86_64' published-files.txt
|
|
@@ -59,7 +76,7 @@ jobs:
|
|
|
59
76
|
grep -E 'SVF-linux-arm64|SVF-linux-aarch64|linux.*arm64|linux.*aarch64' published-files.txt
|
|
60
77
|
|
|
61
78
|
echo "Checking macOS binary..."
|
|
62
|
-
grep -E 'SVF-darwin|SVF-macos|
|
|
79
|
+
grep -E 'SVF-darwin|SVF-macos|darwin|macos' published-files.txt
|
|
63
80
|
|
|
64
81
|
trigger-svf-python:
|
|
65
82
|
if: github.event_name == 'push' # Only run on push events
|