There was an error while loading. Please reload this page.
1 parent 76ccdda commit 1e0b1dfCopy full SHA for 1e0b1df
1 file changed
.github/workflows/smoke-test.yaml
@@ -38,8 +38,10 @@ jobs:
38
# Pack the package (creates .tgz)
39
npm pack --pack-destination /tmp/tarballs
40
41
- # Extract and inspect the tarball
42
- TARBALL=$(ls /tmp/tarballs/datadog-*.tgz | tail -1)
+ # Extract and inspect the tarball (use package name for deterministic match)
+ PKG_NAME=$(node -p "require('./package.json').name.replace('@datadog/', 'datadog-')")
43
+ PKG_VERSION=$(node -p "require('./package.json').version")
44
+ TARBALL="/tmp/tarballs/${PKG_NAME}-${PKG_VERSION}.tgz"
45
tar -xzf "$TARBALL" -C /tmp
46
47
# Check for any yarn-specific protocols in the packed package.json
0 commit comments