debug(ci): Add .npmrc debug step to build workflow

Adds a debug step to the 'build-and-publish.yml' workflow to print the contents of the .npmrc file immediately before the 'npm publish' step.

This will help diagnose the 'ENEEDAUTH' error by showing the exact state of the npm configuration at the time of failure.
This commit is contained in:
mkorwel
2025-10-22 00:57:17 -07:00
parent 430e9c68d7
commit 2f179d1886
+8
View File
@@ -52,6 +52,14 @@ jobs:
echo "version=${NEW_VERSION}" >> "$GITHUB_OUTPUT"
npm version --no-git-tag-version "${NEW_VERSION}"
- name: 'Debug .npmrc'
run: |
echo "--- Listing files in current directory ---"
ls -la
echo "--- Contents of .npmrc ---"
cat .npmrc
echo "---------------------------"
- name: 'Publish to GitHub Packages'
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then