debug: add verbose logging to npm publish
This commit is contained in:
@@ -54,6 +54,13 @@ jobs:
|
|||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Debug auth
|
||||||
|
run: |
|
||||||
|
echo "npm version: $(npm --version)"
|
||||||
|
echo "node version: $(node --version)"
|
||||||
|
npm whoami 2>&1 || echo "whoami failed"
|
||||||
|
cat ~/.npmrc | sed 's/npm_[a-zA-Z0-9]*/npm_REDACTED/g'
|
||||||
|
|
||||||
- name: Bump & publish core
|
- name: Bump & publish core
|
||||||
if: inputs.package == 'core' || inputs.package == 'both'
|
if: inputs.package == 'core' || inputs.package == 'both'
|
||||||
working-directory: packages/core
|
working-directory: packages/core
|
||||||
@@ -64,11 +71,18 @@ jobs:
|
|||||||
|
|
||||||
bun run build
|
bun run build
|
||||||
|
|
||||||
|
echo "📋 Package contents:"
|
||||||
|
npm pack --dry-run 2>&1 || true
|
||||||
|
|
||||||
if [ "${{ inputs.dry-run }}" = "true" ]; then
|
if [ "${{ inputs.dry-run }}" = "true" ]; then
|
||||||
echo "🏜️ Dry run — would publish @pascal-app/core@$VERSION"
|
echo "🏜️ Dry run — would publish @pascal-app/core@$VERSION"
|
||||||
npm publish --dry-run --access public
|
npm publish --dry-run --access public
|
||||||
else
|
else
|
||||||
npm publish --access public
|
npm publish --access public --loglevel verbose 2>&1 || {
|
||||||
|
echo "❌ Publish failed, dumping debug log:"
|
||||||
|
cat ~/.npm/_logs/*-debug-0.log 2>/dev/null | tail -50
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
echo "📦 Published @pascal-app/core@$VERSION"
|
echo "📦 Published @pascal-app/core@$VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user