Skip to content

ci: Run nightly canary release for braintrust package#1547

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit intomainfrom
abhi-canary-nightly
Mar 12, 2026
Merged

ci: Run nightly canary release for braintrust package#1547
Abhijeet Prasad (AbhiPrasad) merged 1 commit intomainfrom
abhi-canary-nightly

Conversation

@AbhiPrasad
Copy link
Member

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Mar 11, 2026

resolves #1543

This PR publishes a nightly canary release of the braintrust js package. Read through PUBLISHING_JS.md, it has all the info you need.

We publish the package to the github package registry instead of npm, to keep npm clean for our actual stable/intentional pre-releases. Turns out the github package registry is very annoying. We just publish to npm instead. We also don't publish github releases or git tags for now, but we can change that decision at a later date.

We have to do all the publishing from a single workflow because npm trusted publishing relies on that.

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) force-pushed the abhi-canary-nightly branch 3 times, most recently from 9aa23fe to 481a0a5 Compare March 11, 2026 22:02
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) changed the title feat: Run nightly canary release for braintrust package ci: Run nightly canary release for braintrust package Mar 12, 2026
Copy link
Member

@lforst Luca Forstner (lforst) left a comment

Choose a reason for hiding this comment

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

Turns out the github package registry is very annoying. We just publish to npm instead. We also don't publish github releases or git tags for now, but we can change that decision at a later date.

To some degree I think we should keep these canaries in npm only. Whenever I see these things in GitHub releases I am annoyed af.

await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: "publish-js-sdk.yaml",

Choose a reason for hiding this comment

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

naive question but why this indirection?

Choose a reason for hiding this comment

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

Ah for the canary input 🧠 maybe smol comment?

uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "20"
node-version: "22"

Choose a reason for hiding this comment

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

low key want to use volta cause the setup node action understands it

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like we can provide a node-version-file to the setup action. Lemme clean this up.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll fix this in a follow up PR after #1548 merges in

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit 75c22b4 into main Mar 12, 2026
23 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-canary-nightly branch March 12, 2026 17:04
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.

Publish nightly releases of the braintrust SDK

2 participants