@ankhorage/devtools 2.3.21 → 2.3.22

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.
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  # @ankhorage/devtools
5
5
 
6
- ![license: MIT](././paradox/badges/license.svg) ![npm: v2.3.21](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
6
+ ![license: MIT](././paradox/badges/license.svg) ![npm: v2.3.22](././paradox/badges/npm.svg) ![runtime: bun](././paradox/badges/runtime.svg) ![typescript: strict](././paradox/badges/typescript.svg) ![eslint: checked](././paradox/badges/eslint.svg) ![prettier: checked](././paradox/badges/prettier.svg) ![build: checked](././paradox/badges/build.svg) ![tests: checked](././paradox/badges/tests.svg) ![paradox: warnings](././paradox/badges/docs.svg)
7
7
 
8
8
  Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects
9
9
 
@@ -528,6 +528,7 @@ jobs:
528
528
  needs: release
529
529
  if: needs.release.outputs.versioned == 'true'
530
530
  runs-on: ubuntu-latest
531
+ timeout-minutes: 5
531
532
 
532
533
  steps:
533
534
  - name: Setup Node for npm verification
@@ -546,48 +547,29 @@ jobs:
546
547
  run: |
547
548
  set -euo pipefail
548
549
  package_spec="${PUBLISHED_PACKAGE_NAME}@${PUBLISHED_PACKAGE_VERSION}"
549
- registry_evidence="${RUNNER_TEMP}/npm-publish-verification.json"
550
- artifact="${RUNNER_TEMP}/npm-publish-verification.tgz"
551
550
  pack_dir="${RUNNER_TEMP}/npm-pack-verification"
552
- max_attempts=60
553
- retry_seconds=30
551
+ pack_log="${RUNNER_TEMP}/npm-pack-verification.log"
552
+ max_attempts=5
553
+ retry_seconds=15
554
554
  mkdir -p "$pack_dir"
555
555
 
556
- last_stage="registry-metadata"
557
556
  for attempt in $(seq 1 "$max_attempts"); do
558
557
  echo "Verifying ${package_spec} on npm (attempt ${attempt}/${max_attempts})..."
559
- last_stage="registry-metadata"
560
-
561
- if npm view "$package_spec" version dist.tarball dist.integrity --json > "$registry_evidence"; then
562
- resolved_version="$(node -e "const raw=require(process.argv[1]); const p=Array.isArray(raw)&&raw.length===1?raw[0]:raw; process.stdout.write(typeof p?.version==='string'?p.version:'')" "$registry_evidence")"
563
- tarball="$(node -e "const raw=require(process.argv[1]); const p=Array.isArray(raw)&&raw.length===1?raw[0]:raw; process.stdout.write(typeof p?.['dist.tarball']==='string'?p['dist.tarball']:'')" "$registry_evidence")"
564
- integrity="$(node -e "const raw=require(process.argv[1]); const p=Array.isArray(raw)&&raw.length===1?raw[0]:raw; process.stdout.write(typeof p?.['dist.integrity']==='string'?p['dist.integrity']:'')" "$registry_evidence")"
565
-
566
- if [ "$resolved_version" = "$PUBLISHED_PACKAGE_VERSION" ] && [ -n "$tarball" ] && [ -n "$integrity" ]; then
567
- last_stage="tarball-download"
568
- if curl --fail --location --silent --show-error --output "$artifact" "$tarball"; then
569
- last_stage="integrity"
570
- if EXPECTED_INTEGRITY="$integrity" ARTIFACT="$artifact" node -e "const { createHash }=require('node:crypto'); const { readFileSync }=require('node:fs'); const actual='sha512-'+createHash('sha512').update(readFileSync(process.env.ARTIFACT)).digest('base64'); if(actual!==process.env.EXPECTED_INTEGRITY){console.error('Downloaded npm tarball integrity mismatch.'); process.exit(1)}"; then
571
- last_stage="npm-pack"
572
- attempt_pack_dir="$pack_dir/attempt-${attempt}"
573
- mkdir -p "$attempt_pack_dir"
574
- if npm pack "$package_spec" --pack-destination "$attempt_pack_dir" >/dev/null; then
575
- echo "Verified ${package_spec}: metadata, integrity, tarball download, and npm pack are available."
576
- exit 0
577
- fi
578
- fi
579
- fi
558
+ if npm pack "$package_spec" --ignore-scripts --prefer-online --pack-destination "$pack_dir" >"$pack_log" 2>&1; then
559
+ if find "$pack_dir" -maxdepth 1 -type f -name '*.tgz' -size +0c -print -quit | grep -q .; then
560
+ echo "Verified ${package_spec}: public npm package downloaded successfully."
561
+ exit 0
580
562
  fi
563
+ echo "npm pack succeeded without producing a non-empty tarball."
581
564
  fi
582
565
 
583
- echo "Published npm artifact not ready at stage: ${last_stage}."
566
+ tail -n 20 "$pack_log" || true
584
567
  if [ "$attempt" -lt "$max_attempts" ]; then
585
568
  sleep "$retry_seconds"
586
569
  fi
587
570
  done
588
571
 
589
- echo "Published npm artifact did not become retrievable after ${max_attempts} attempts; last stage: ${last_stage}."
590
- cat "$registry_evidence" 2>/dev/null || true
572
+ echo "::error title=npm publication not retrievable::${package_spec} could not be downloaded from public npm after ${max_attempts} attempts."
591
573
  exit 1
592
574
 
593
575
  finalize:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ankhorage/devtools",
3
- "version": "2.3.21",
3
+ "version": "2.3.22",
4
4
  "description": "Shared tooling, repository automation, and agent standards for Ankhorage TypeScript projects",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ankhorage/devtools#readme",