fix: try Node 20 + capture debug log on failure
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 20
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -66,7 +66,11 @@ jobs:
|
|||||||
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 --provenance
|
npm publish --access public --provenance 2>&1 || {
|
||||||
|
echo "❌ Publish failed. Debug log:"
|
||||||
|
cat ~/.npm/_logs/*-debug-0.log 2>/dev/null | tail -80
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
echo "📦 Published @pascal-app/core@$VERSION"
|
echo "📦 Published @pascal-app/core@$VERSION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user