Skip to content

Release the CLI and the SDKs from the publish run, at its version - #169

Merged
samerzughul merged 1 commit into
mainfrom
release/versioned-cli-sdks
Oct 10, 2026
Merged

samerzughul merged 1 commit into
mainfrom
release/versioned-cli-sdks

Conversation

@samerzughul

Copy link
Copy Markdown
Member

No more tagging by hand. nuget-publish.yml now calls two workflows with the version it just published the NuGet packages with (determine-semver: the next patch on main):

  • cli-release.yml releases the sw-serverless CLI as cli-v<version>, marked latest, with self-contained binaries for 7 platforms and SHA256SUMS.
  • sdk-release.yml publishes sw-serverless to PyPI and @simplyworks/sw-serverless to npm at that version. It writes the version into pyproject.toml, package.json and the SDKs' SDK_VERSION constants, then tests, then publishes. It uses PYPI_API_TOKEN and NPM_TOKEN through secrets: inherit, and a version already on a registry is skipped.

A manual run on another branch gives a prerelease version: the CLI goes out as a pre-release cli-v<x.y.z>-stg.<run> and the SDKs are skipped.

scripts/install-cli.sh installs the newest release and never a pre-release unless SW_SERVERLESS_VERSION names it.

Merging this runs the whole chain: NuGet, then the CLI release, then PyPI and npm.

…stead of from tags

nuget-publish.yml calls cli-release.yml and sdk-release.yml with the version it published the
packages with, so nothing is tagged by hand. A prerelease (a run by hand on another branch) releases
the CLI as a pre-release and doesn't publish the SDKs. The install script installs the latest release,
a pre-release only when named.
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Review in Change Stack →Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: simplify9/coderabbit/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b952acbc-f1ca-4ec7-af17-ee20f5530b57

📥 Commits

Reviewing files that changed from the base of the PR and between d04256f and 6cdca96.


📒 Files selected for processing (6)
  • .github/workflows/cli-release.yml
  • .github/workflows/nuget-publish.yml
  • .github/workflows/sdk-release.yml
  • README.md
  • docs/cli.md
  • scripts/install-cli.sh

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@samerzughul
samerzughul merged commit 3fd49fe into main Oct 10, 2026
4 of 6 checks passed
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