Skip to content

Commit 1e0b1df

Browse files
committed
ci: use deterministic tarball selection in smoke test
1 parent 76ccdda commit 1e0b1df

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/smoke-test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ jobs:
3838
# Pack the package (creates .tgz)
3939
npm pack --pack-destination /tmp/tarballs
4040
41-
# Extract and inspect the tarball
42-
TARBALL=$(ls /tmp/tarballs/datadog-*.tgz | tail -1)
41+
# Extract and inspect the tarball (use package name for deterministic match)
42+
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"
4345
tar -xzf "$TARBALL" -C /tmp
4446
4547
# Check for any yarn-specific protocols in the packed package.json

0 commit comments

Comments
 (0)