Skip to content

ci: Release process#288

Merged
jamesnrokt merged 6 commits intomainfrom
ci/release-process
Mar 6, 2026
Merged

ci: Release process#288
jamesnrokt merged 6 commits intomainfrom
ci/release-process

Conversation

@jamesnrokt
Copy link
Contributor

@jamesnrokt jamesnrokt commented Mar 6, 2026

Summary

  • Replaces the manual release.yml + release.sh with a two-stage release-draft / release-publish workflow aligned to the ROKT SDK release pattern
  • release-draft.yml opens a version-bump PR (semver input, updates VERSION, package.json, CHANGELOG.md, and populates PR body with generated release notes)
  • release-publish.yml triggers automatically on VERSION file changes to main, runs all tests, publishes to npm via OIDC, and creates a GitHub release
  • Secrets have been configured
  • TODO: Update NPM with new release workflow link for OIDC

Important: Once merged you need to cancel the release process as this will try to release the current version again due to the VERSION file being created

Testing Plan

Workflow can be verified by running release-draft.yml with bump-type: patch (expected: PR created for release/2.8.2), then merging that PR (expected: release-publish.yml triggers, npm publish, GitHub release created).

Master Issue

N/A

@jamesnrokt jamesnrokt requested a review from a team as a code owner March 6, 2026 01:23
Copilot AI review requested due to automatic review settings March 6, 2026 01:23
Copy link
Contributor

Copilot AI left a comment

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 modernizes the SDK release process by replacing the legacy manual release script/workflow with a two-stage GitHub Actions pipeline that drafts a version-bump PR and publishes on merge to main.

Changes:

  • Remove legacy release.yml + release.sh release path.
  • Add release-draft.yml to open a version-bump PR (updates VERSION, package.json, and CHANGELOG.md).
  • Add release-publish.yml to run tests and publish to npm + create a GitHub release when VERSION changes on main.

Reviewed changes

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

Show a summary per file
File Description
release.sh Removes the manual npm publish script.
.github/workflows/release.yml Removes the legacy one-step release workflow.
VERSION Introduces a single-source version file used by the new workflows.
CHANGELOG.md Adds a Keep a Changelog–style changelog to support release note generation.
.github/workflows/release-draft.yml Adds workflow to bump version and open a release PR.
.github/workflows/release-publish.yml Adds workflow to test, publish to npm (OIDC), and create a GitHub release on VERSION changes.

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

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

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

I haven't fully reviewed but I had a couple questions it didn't make sense to hold back

jamesnrokt and others added 3 commits March 6, 2026 11:10
Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

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

LGTM

@jamesnrokt jamesnrokt merged commit 68c5a6d into main Mar 6, 2026
10 checks passed
@jamesnrokt jamesnrokt deleted the ci/release-process branch March 6, 2026 17:30
@rokt-releases rokt-releases bot mentioned this pull request Mar 6, 2026
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.

4 participants