Skip to content

Commit 52c6586

Browse files
committed
change publish-npm.yaml
1 parent 9f0f743 commit 52c6586

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/publish-npm.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
npm version $VERSION --no-git-tag-version
3939
4040
npm run build
41-
npm publish --access public
41+
if npm publish --access public 2>&1 | tee publish.log; then
42+
echo "Published successfully"
43+
else
44+
echo "Publish failed, checking if it's a first-time publish issue..."
45+
cat publish.log
46+
exit 1
47+
fi
4248
4349
git config user.name "github-actions"
4450
git config user.email "[email protected]"

0 commit comments

Comments
 (0)