svf-lib 1.0.2654 → 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.
@@ -34,6 +34,50 @@ jobs:
34
34
  cat package.json
35
35
  npm publish --access public
36
36
 
37
+ - name: Verify published package
38
+ run: |
39
+ PKG=$(node -p "require('./package.json').name")
40
+ VERSION=$(node -p "require('./package.json').version")
41
+
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"
58
+ break
59
+ fi
60
+ echo "Tarball not ready yet, retrying in 10s..."
61
+ sleep 10
62
+ done
63
+
64
+ if [ ! -f "$TARBALL" ]; then
65
+ echo "Failed to download published tarball for $PKG@$VERSION"
66
+ exit 1
67
+ fi
68
+
69
+ echo "Listing published tarball contents..."
70
+ tar -tzf "$TARBALL" | tee published-files.txt
71
+
72
+ echo "Checking Linux x64 binary..."
73
+ grep -E 'SVF-linux-x86_64|linux.*x64|linux.*x86_64' published-files.txt
74
+
75
+ echo "Checking Linux ARM binary..."
76
+ grep -E 'SVF-linux-arm64|SVF-linux-aarch64|linux.*arm64|linux.*aarch64' published-files.txt
77
+
78
+ echo "Checking macOS binary..."
79
+ grep -E 'SVF-darwin|SVF-macos|darwin|macos' published-files.txt
80
+
37
81
  trigger-svf-python:
38
82
  if: github.event_name == 'push' # Only run on push events
39
83
  needs: build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.2654",
3
+ "version": "1.0.2656",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {