Skip to content

Switch from push-to-main auto-release to GitHub Releases-triggered publishing - #37

Draft
jogibear9988 with Copilot wants to merge 2 commits into
mainfrom
copilot/update-github-workflow
Draft

Switch from push-to-main auto-release to GitHub Releases-triggered publishing#37
jogibear9988 with Copilot wants to merge 2 commits into
mainfrom
copilot/update-github-workflow

Conversation

CopilotAI commented Feb 22, 2026

Copy link
Copy Markdown
Contributor

Publishing was triggered automatically on every merge to main using GitVersion for versioning. The new model gates publishing behind an explicit GitHub Release, using the release tag as the canonical version source for both the NuGet and npm packages.

Changes

.github/workflows/dotnet.yml

  • Stripped GitVersion, version-stamping, dotnet pack, and dotnet nuget push steps
  • Now purely a CI workflow (build + test) for pushes to main
  • Updated action pins: actions/checkout, actions/setup-dotnet@v4

.github/workflows/release.yml (new)

  • Triggers on release: published
  • Extracts semver from tag, stripping leading v (e.g. v1.2.31.2.3)
  • Stamps C# project via roryprimrose/set-vs-sdk-project-version@v1
  • Stamps npm package via npm version --no-git-tag-version
  • Builds and tests both targets in Release configuration
  • Uploads .nupkg as a release asset
  • Publishes to NuGet.org (NUGET_API_KEY secret) and npmjs.org (NPM_TOKEN secret)
Original prompt

This section details on the original issue you should resolve

<issue_title>Change the .github workflow</issue_title>
<issue_description>We want the github workflow to be changed.

We should not create automaticly a release on merge to master, we should use the release page to create one.
If we create one there, we should use the version from the tag, and use it in the c# nuget and npm package to publish the version to the repositorys

Similar like we did in https://github.com/dotnetprojects/Migrator.NET</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… publish workflow
Co-authored-by: jogibear9988 <364896+jogibear9988@users.noreply.github.com>
CopilotAI changed the title [WIP] Change GitHub workflow for release managementSwitch from push-to-main auto-release to GitHub Releases-triggered publishingFeb 22, 2026
@jogibear9988
jogibear9988 removed their request for review August 2, 2026 11:06
@jogibear9988jogibear9988 removed their assignment Aug 2, 2026
Sign up for freeto 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.

Change the .github workflow

2 participants

@jogibear9988