Skip to content

Commit 77992b1

Browse files
authored
Merge pull request #15 from Codout/claude/verbose-pack-step
ci: split build and pack with --verbosity normal to surface api-dto build errors
2 parents 266debf + 2a5e46c commit 77992b1

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/mass-release.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,41 @@ jobs:
9393
set -euo pipefail
9494
mkdir -p ./artifacts
9595
96+
# Build and pack each project in two explicit steps with --verbosity
97+
# normal, so any build error (missing source, broken Import, etc.) is
98+
# surfaced in the logs instead of being swallowed by `dotnet pack`'s
99+
# implicit-build behavior.
100+
#
96101
# Out-of-solution projects (Cosmos, DocumentDB, etc.) need their own
97-
# restore/build, so we deliberately do NOT pass --no-build here.
102+
# restore + build here.
98103
for pkg in $(jq -r 'keys[]' "$MAPPING"); do
99104
project=$(jq -r --arg p "$pkg" '.[$p]' "$MAPPING")
105+
echo "::group::Build $pkg ($project)"
106+
dotnet build "$project" \
107+
--configuration "$CONFIGURATION" \
108+
--verbosity normal
109+
echo "::endgroup::"
110+
100111
echo "::group::Pack $pkg ($project)"
101-
dotnet pack "$project" --configuration "$CONFIGURATION" --output ./artifacts
112+
dotnet pack "$project" \
113+
--configuration "$CONFIGURATION" \
114+
--no-build \
115+
--output ./artifacts
102116
echo "::endgroup::"
103117
done
104118
105119
if [ "${{ github.event.inputs.include_mcp }}" = "true" ]; then
120+
echo "::group::Build mcp ($MCP_PROJECT)"
121+
dotnet build "$MCP_PROJECT" \
122+
--configuration "$CONFIGURATION" \
123+
--verbosity normal
124+
echo "::endgroup::"
125+
106126
echo "::group::Pack mcp ($MCP_PROJECT)"
107-
dotnet pack "$MCP_PROJECT" --configuration "$CONFIGURATION" --output ./artifacts
127+
dotnet pack "$MCP_PROJECT" \
128+
--configuration "$CONFIGURATION" \
129+
--no-build \
130+
--output ./artifacts
108131
echo "::endgroup::"
109132
fi
110133

0 commit comments

Comments
 (0)