Skip to content

Commit

Permalink
#main added debug step in publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bennobuilder committed Dec 22, 2024
1 parent 6bb1857 commit 9604753
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,33 @@ jobs:
shell: bash
run: pnpm build

# Debug steps
- name: 📝 List dist contents
shell: bash
run: |
echo "=== Listing dist contents for each package ==="
for pkg in packages/*/; do
if [ -d "$pkg/dist" ]; then
echo "📦 Contents of $pkg/dist:"
ls -la "$pkg/dist"
echo "=== Recursive listing ==="
find "$pkg/dist" -type f
fi
done
- name: 🔍 Debug package contents
shell: bash
run: |
echo "=== Checking what would be published ==="
for pkg in packages/*/; do
if [ -f "$pkg/package.json" ]; then
echo "📦 Dry run npm pack for $pkg:"
cd "$pkg"
npm pack --dry-run
cd -
fi
done
# Publish
# https://github.com/changesets/action?tab=readme-ov-file#with-publishing

Expand All @@ -90,11 +117,11 @@ jobs:
id: changesets
uses: changesets/[email protected]
with:
title: "[ci] version packages 🦋"
title: '[ci] version packages 🦋'
publish: pnpm packages:publish
version: pnpm packages:version
commit: "[ci] version packages 🦋 [skip ci]"
branch: "main"
commit: '[ci] version packages 🦋 [skip ci]'
branch: 'main'
env:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
NPM_TOKEN: ${{ env.NPM_TOKEN }}
Expand All @@ -106,7 +133,7 @@ jobs:
uses: tsickert/[email protected]
with:
webhook-url: ${{ env.DISCORD_WEBHOOK_URL }}
content: "New versions of @blgc were published!"
content: 'New versions of @blgc were published!'

- name: 🔄 Merge main into develop
if: steps.changesets.outputs.published == 'true'
Expand Down

0 comments on commit 9604753

Please sign in to comment.