Skip to content

Release on tags through GitHub Actions, and date the 0.1.0 releases - #3

Merged
somdoron merged 3 commits into
mainfrom
claude/project-thread-aualb0
Nov 1, 2026
Merged

somdoron merged 3 commits into
mainfrom
claude/project-thread-aualb0

Conversation

@snlamm

@snlamm snlamm commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Shmuel Lamm · project thread

GitHub Actions is now enabled for this repository. This PR makes pushing a tag the way to publish a package to npm. It also prepares the first release of all three packages.

What changes

  • Release workflow. release.yml publishes the package a tag names (sdk-v0.1.0, ai-sdk-v0.1.0, mastra-v0.1.0) with npm provenance, from the npm environment.
    • It authenticates through npm trusted publishing, which needs npm 11.5.1 or later, so the workflow updates npm before publishing.
    • npm only lets a package that already exists have a trusted publisher. So for a package's first release, the workflow falls back to an NPM_TOKEN secret in the npm environment. npm tries trusted publishing first and uses the token only when that fails.
  • README. It describes CI on pull requests and tag releases again. scripts/ci.sh stays as the way to run the same checks locally.
  • Changelogs. The 0.1.0 entries of @submilli/sdk, @submilli/ai-sdk and @submilli/mastra are dated 2026-11-01.
  • publishConfig does not set provenance. The workflow passes --provenance itself, so a publish from a laptop still works if one is ever needed.

Verification

  • Local checks on this branch: type checks pass; unit tests pass (21 SDK, 22 AI SDK, 26 Mastra); npm run check (build + publint) passes for all three packages; both workflows parse as YAML.
  • This is the first PR since Actions was enabled, so CI on it is the check that ci.yml runs.
  • The release workflow can only be checked by pushing a tag after merge. The steps are below.

After merge (repository and npm settings)

  1. In Settings → Environments, create an environment named npm. Add the secret NPM_TOKEN to it: a granular npm token that can publish packages in the @submilli scope.
  2. Push sdk-v0.1.0, wait for that run to finish, then push ai-sdk-v0.1.0 and mastra-v0.1.0.
  3. On npmjs.com, add a trusted publisher to each package: GitHub Actions, organization submilli, repository submilli-typescript, workflow release.yml, environment npm. Then delete NPM_TOKEN.

🤖 Generated with Claude Code

https://claude.ai/code/session_014d2JufuQQoiwYUSnKQA9nu

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d2JufuQQoiwYUSnKQA9nu
@snlamm
snlamm requested a review from somdoron October 29, 2026 09:59
GitHub Actions is now enabled for this repository. The release workflow
authenticates through npm trusted publishing, and falls back to an NPM_TOKEN
secret in the npm environment for a package's first release, which npm
requires before a trusted publisher can be added. The README describes CI on
pull requests and tag releases again, and the 0.1.0 changelogs of all three
packages carry today's date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014d2JufuQQoiwYUSnKQA9nu
@snlamm snlamm changed the title Date the 0.1.0 release of @submilli/sdk and @submilli/ai-sdk Release on tags through GitHub Actions, and date the 0.1.0 releases Nov 1, 2026
@somdoron
somdoron merged commit 483b710 into main Nov 1, 2026
4 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.

3 participants