Skip to content

Commit b87ed19

Browse files
committed
Fix script
1 parent f25ae68 commit b87ed19

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,10 @@ jobs:
109109

110110
- name: Publish to npm
111111
run: |
112-
# Check Git status
113-
echo "=== Git Status Check ==="
114-
echo "Current branches:"
115-
git branch
116-
echo ""
117-
echo "Git HEAD status:"
118-
git rev-parse --abbrev-ref HEAD
119-
echo ""
120-
echo "Git status:"
121-
git status
122-
echo ""
123-
echo "Recent commit:"
124-
git log -1 --oneline
125-
echo ""
126-
echo "Remote branch info:"
127-
git branch -r | grep HEAD || echo "No remote HEAD found"
128-
echo "==================="
129-
echo ""
130-
131-
pnpm publish
112+
echo '${{ steps.changepacks.outputs.changepacks }}' | jq -r '.[]' | while read package; do
113+
echo "Publishing package: $package"
114+
cd "$package"
115+
pnpm publish
116+
cd "${{ github.workspace }}"
117+
done
132118
if: steps.changepacks.outputs.changepacks != ''

0 commit comments

Comments
 (0)