Skip to content

Commit 16a4a36

Browse files
committed
ci: fix ci
1 parent 1db3a78 commit 16a4a36

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ jobs:
8686
# 确保 pnpm 使用 npm 的配置
8787
pnpm config set registry https://registry.npmjs.org/ || true
8888
89+
- name: Debug npm configuration before publish
90+
run: |
91+
echo "=== Debugging npm configuration ==="
92+
echo "NPM_CONFIG_USERCONFIG: ${NPM_CONFIG_USERCONFIG:-not set}"
93+
echo "HOME: $HOME"
94+
echo "Current .npmrc locations:"
95+
ls -la ~/.npmrc 2>/dev/null || echo "~/.npmrc not found"
96+
if [ -n "$NPM_CONFIG_USERCONFIG" ]; then
97+
ls -la "$NPM_CONFIG_USERCONFIG" 2>/dev/null || echo "$NPM_CONFIG_USERCONFIG not found"
98+
fi
99+
echo "npm version: $(npm --version)"
100+
echo "Checking npm config:"
101+
npm config list || true
102+
echo "=== End debugging ==="
103+
89104
- name: Create Release Pull Request or Publish to npm
90105
id: changesets
91106
uses: changesets/action@v1

0 commit comments

Comments
 (0)