fix: prevent example projects from being packed during release#115
Merged
Conversation
Set IsPackable=false on all example projects to prevent them from being included in the NuGet pack step during the release workflow. This prevents 403 Forbidden errors when trying to push sample packages to NuGet.org without authorization.
- Added version comparison links for v0.1.1 and v0.1.2. - Introduced an "Unreleased" section for tracking upcoming changes.
- Updated regex to support versions with links and parentheses in the changelog header. - Ensures proper removal of headers and summary to maintain consistent formatting.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #115 +/- ##
=======================================
Coverage 50.12% 50.12%
=======================================
Files 52 52
Lines 1640 1640
Branches 204 204
=======================================
Hits 822 822
Misses 765 765
Partials 53 53 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



🚀 Pull Request
📋 Summary
This PR prevents example projects from being packed during the NuGet release process by setting
<IsPackable>false</IsPackable>in all example project files. Additionally, it improves the regex pattern in the changelog workflow to handle versioned header formats with optional links and additional metadata.Changes:
<IsPackable>false</IsPackable>to all example projects (HelloWorld, HelloWorldAot, Lifecycle, OpenTelemetry)✅ Checklist
🧪 Related Issues or PRs
Relates to release workflow and NuGet packaging
💬 Notes for Reviewers
The example projects are now properly excluded from NuGet packaging, which ensures that only the core library packages are published. The changelog regex improvement ensures compatibility with the newer link format used by the release notes generator.