Skip to content

Publish spike branches to the GitHub Packages feed with sortable versions - #1045

Open
FreeApophis wants to merge 2 commits into
mainfrom
nightly-spike-packages
Open

FreeApophis wants to merge 2 commits into
mainfrom
nightly-spike-packages

Conversation

@FreeApophis

Copy link
Copy Markdown
Member

Groundwork for the 4.0.0 spikes (#862, #1034): their packages should be testable from the polyadic GitHub Packages feed, next to the nightlies. Independent of the open 4.0.0 chain.

  • publish-nightly-package.yml also triggers on spike/** branches. A spike's packages carry the branch as prerelease label (spike/traits → 4.0.0-spike-traits.20261030.12), main keeps nightly.
  • The suffix is <label>.<yyyyMMdd>.<run number> instead of the short commit hash, so NuGet orders the versions and --prerelease picks the newest; the commit is in the package's Source Link metadata.
  • The SDK step installs the 11.0 release candidate like build.yml, instead of "the current SDK".
  • Directory.Build.props sets RepositoryUrl without the .git suffix (Source Link still fills commit and branch). GitHub only links a package to a repository when the nuspec URL matches exactly, which is why the nightlies show up under the organization but not in the repository sidebar. Verified in a local pack: <repository type="git" url="https://github.com/polyadic/funcky" branch="…" commit="…" />.

The feed stays https://nuget.pkg.github.com/polyadic/index.json; consuming it needs a token with the packages read scope.

🤖 Generated with Claude Code

FreeApophis and others added 2 commits October 30, 2026 11:11
…ions

The nightly workflow also runs on spike/** branches, labels their packages
after the branch (spike-traits.20261030.12 next to nightly.20261030.12) and
uses a date plus the run number as the suffix, so the versions sort
chronologically; the commit stays in the Source Link metadata. The SDK step
matches build.yml. The repository URL is given without the .git suffix so
that GitHub Packages links the packages to this repository.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d into the previous commit

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant