Skip to content

Manual release run#23

Merged
timasin merged 4 commits into
mainfrom
workflow-dispatch-release
May 13, 2026
Merged

Manual release run#23
timasin merged 4 commits into
mainfrom
workflow-dispatch-release

Conversation

@timasin

@timasin timasin commented May 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Add manual workflow_dispatch support to the release workflow so npm publishing for @datacline/smcp can be triggered from the GitHub Actions UI, not only from tag pushes.

Changes

  • Added workflow_dispatch to .github/workflows/release.yml

  • Added a required tag input for manual release runs

  • Updated checkout logic so manual runs check out the provided tag

  • Added a shared release-tag resolution step for both tag-push and manual runs

  • Kept version validation so the selected tag must match packages/smcp/package.json

  • Made GitHub release creation conditional so manual runs do not fail if the release already exists

  • Removed stale package-specific steps in the workflow that did not match the current @datacline/smcp setup

Test plan

  • npm run lint --workspace @datacline/smcp clean
  • npm run build --workspace @datacline/smcp clean (ESM + CJS in dist/)
  • npm test --workspace @datacline/smcp passes
  • npm pack --dry-run --workspace @datacline/smcp shows expected files only
  • Manually exercised affected smcp commands against a running gateway
  • Added regression test that fails on main and passes with this change (if fixing a bug)

Breaking changes?

NO

Gateway / policy-engine changes?

No. This change is limited to the GitHub Actions release workflow for publishing the CLI package.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Actions release workflow to support manual (workflow_dispatch) npm publishes for @datacline/smcp, in addition to the existing tag-push trigger.

Changes:

  • Added workflow_dispatch with a required tag input and updated checkout to use that ref for manual runs.
  • Centralized “release tag” resolution and reused it for version validation + GitHub release creation.
  • Made GitHub release creation conditional and simplified the package “pack” verification step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
Comment thread .github/workflows/release.yml Outdated
timasin and others added 3 commits May 13, 2026 11:32
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@timasin timasin requested a review from Copilot May 13, 2026 09:35
@timasin timasin merged commit 9938237 into main May 13, 2026
8 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment on lines +48 to +52
TAG="$(printf '%s' "$RAW_TAG" | sed -E 's/^[[:space:]]+//; s/[[:space:]]+$//; s#^refs/tags/##')"
else
TAG="${GITHUB_REF#refs/tags/}"
fi
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
@@ -28,16 +36,25 @@ jobs:

- run: npm ci --workspace @datacline/smcp --include-workspace-root

Comment on lines +72 to +83
const requiredFiles = [
"dist/smcp.cjs",
"dist/smcp.mjs",
];

const forbiddenPatterns = [
/^src\//,
/^test\//,
/^tests\//,
/^scripts\//,
/^\.github\//,
/(^|\/)tsconfig(\.[^/]+)?\.json$/,
@timasin timasin deleted the workflow-dispatch-release branch May 13, 2026 09:39
@timasin timasin restored the workflow-dispatch-release branch May 13, 2026 10:05
@timasin timasin deleted the workflow-dispatch-release branch May 13, 2026 12:20
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.

2 participants