From 9824391aac4bc26265d5545f2eb91f2f79582a05 Mon Sep 17 00:00:00 2001 From: ChristopherPHolder Date: Fri, 23 Oct 2026 23:22:04 +0200 Subject: [PATCH 1/3] ci: diagnose release env npx failure --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38d3066b..9f7fa2fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,18 @@ jobs: with: cache: 'npm' node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org - name: install run: npm ci - - name: build - run: npm run nx -- run-many -t build --skip-nx-cache --parallel=false - - name: test - run: npm run nx -- run-many -t test --skip-nx-cache --parallel=false + - name: diag env + run: | + echo "npm $(npm -v) node $(node -v)"; echo "userconfig=$NPM_CONFIG_USERCONFIG"; cat "$NPM_CONFIG_USERCONFIG" || true + echo "--- npx cache"; ls -la ~/.npm/_npx 2>/dev/null || echo "no _npx"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json" 2>/dev/null; ls "$d/node_modules/.bin" 2>/dev/null; done + - name: diag npx run + run: | + set +e + npx @push-based/user-flow collect --no-interactive > /tmp/out.txt 2> /tmp/err.txt; echo "exit=$?" + echo "--- stdout"; cat /tmp/out.txt; echo "--- stderr"; cat /tmp/err.txt + echo "--- npx cache after"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json"; ls -la "$d/node_modules/.bin"; done + - name: diag nx-plugin test + run: npm run nx -- run nx-plugin:test --skip-nx-cache From afcc1a22ab4dbab7ff35b2894c18d3365633ec2e Mon Sep 17 00:00:00 2001 From: ChristopherPHolder Date: Fri, 23 Oct 2026 23:23:19 +0200 Subject: [PATCH 2/3] ci: make diag steps tolerant --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9f7fa2fc..87a73637 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,7 @@ jobs: run: npm ci - name: diag env run: | + set +e echo "npm $(npm -v) node $(node -v)"; echo "userconfig=$NPM_CONFIG_USERCONFIG"; cat "$NPM_CONFIG_USERCONFIG" || true echo "--- npx cache"; ls -la ~/.npm/_npx 2>/dev/null || echo "no _npx"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json" 2>/dev/null; ls "$d/node_modules/.bin" 2>/dev/null; done - name: diag npx run @@ -36,4 +37,10 @@ jobs: echo "--- stdout"; cat /tmp/out.txt; echo "--- stderr"; cat /tmp/err.txt echo "--- npx cache after"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json"; ls -la "$d/node_modules/.bin"; done - name: diag nx-plugin test - run: npm run nx -- run nx-plugin:test --skip-nx-cache + run: npm run nx -- run nx-plugin:test --skip-nx-cache || true + - name: diag npx run from empty dir + run: | + set +e + mkdir -p /tmp/empty && cd /tmp/empty + npx @push-based/user-flow collect --no-interactive > /tmp/out2.txt 2> /tmp/err2.txt; echo "exit=$?" + echo "--- stdout"; cat /tmp/out2.txt; echo "--- stderr"; cat /tmp/err2.txt From f070ae0e14c137c74820cad78c488481c1027eac Mon Sep 17 00:00:00 2001 From: ChristopherPHolder Date: Fri, 23 Oct 2026 23:24:58 +0200 Subject: [PATCH 3/3] ci: diag steps always succeed --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 87a73637..d53989e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,14 @@ jobs: set +e echo "npm $(npm -v) node $(node -v)"; echo "userconfig=$NPM_CONFIG_USERCONFIG"; cat "$NPM_CONFIG_USERCONFIG" || true echo "--- npx cache"; ls -la ~/.npm/_npx 2>/dev/null || echo "no _npx"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json" 2>/dev/null; ls "$d/node_modules/.bin" 2>/dev/null; done + exit 0 - name: diag npx run run: | set +e npx @push-based/user-flow collect --no-interactive > /tmp/out.txt 2> /tmp/err.txt; echo "exit=$?" echo "--- stdout"; cat /tmp/out.txt; echo "--- stderr"; cat /tmp/err.txt echo "--- npx cache after"; for d in ~/.npm/_npx/*/; do echo "$d"; cat "$d/package.json"; ls -la "$d/node_modules/.bin"; done + exit 0 - name: diag nx-plugin test run: npm run nx -- run nx-plugin:test --skip-nx-cache || true - name: diag npx run from empty dir @@ -44,3 +46,4 @@ jobs: mkdir -p /tmp/empty && cd /tmp/empty npx @push-based/user-flow collect --no-interactive > /tmp/out2.txt 2> /tmp/err2.txt; echo "exit=$?" echo "--- stdout"; cat /tmp/out2.txt; echo "--- stderr"; cat /tmp/err2.txt + exit 0