Skip to content

Commit bc6885d

Browse files
Improve npm install step with verbose logging
Enhanced the npm install step with detailed logging and checks for postinstall scripts.
1 parent b68c783 commit bc6885d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/release-test.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,16 @@ jobs:
6767
git config user.name "Dariel Noel"
6868
git config user.email "[email protected]"
6969
70-
- name: Install dependencies
71-
run: npm install --also=dev --ignore-scripts
70+
- name: Install dependencies (with detailed logging)
71+
run: |
72+
echo "=== Before npm install ==="
73+
echo "Files in packages/tools:"
74+
ls -la packages/tools/ 2>&1 | head -20 || echo "Directory does not exist"
75+
echo "=== Running npm install with verbose logging ==="
76+
npm install --also=dev --loglevel=verbose 2>&1 | tee npm-install.log || true
77+
echo "=== npm install completed ==="
78+
echo "=== Checking for any postinstall scripts that ran ==="
79+
grep -i "postinstall\|prepare\|preinstall" npm-install.log | tail -20 || echo "No postinstall scripts found in log"
7280
7381
- name: Debug - Check packages/tools after npm install
7482
run: |
@@ -77,6 +85,10 @@ jobs:
7785
ls -la packages/tools/ 2>&1 || echo "Directory does not exist"
7886
echo "Git status of packages/tools:"
7987
git status packages/tools/ 2>&1 || echo "No status"
88+
echo "=== Checking if packages/tools is tracked by git ==="
89+
git ls-files packages/tools/ | head -10 || echo "No tracked files found"
90+
echo "=== Checking git diff for packages/tools ==="
91+
git diff packages/tools/ | head -50 || echo "No diff found"
8092
8193
- name: Build production version
8294
run: npm run build

0 commit comments

Comments
 (0)