-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#main added debug step in publish.yml
- Loading branch information
1 parent
6bb1857
commit 9604753
Showing
1 changed file
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|
@@ -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' | ||
|