Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/five-pens-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/itchy-falcons-flow.md

This file was deleted.

45 changes: 44 additions & 1 deletion .github/workflows/publish-stable-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,46 @@ env:
NPM_CONFIG_PROVENANCE: "true"

jobs:
print-changelog-links:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: read
steps:
- name: Print changelog links
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_PR: ${{ inputs.release_pr }}
GITHUB_SERVER_URL: ${{ github.server_url }}
run: |
set -euo pipefail

if [ -z "$RELEASE_PR" ]; then
echo "Stable releases must provide the prepare release PR number in release_pr." >&2
exit 1
fi

gh pr view "$RELEASE_PR" \
--repo "$GH_REPO" \
--json headRefOid,url \
> changelog-pr.json

changelog_pr_url="$(jq -r '.url' changelog-pr.json)"
head_sha="$(jq -r '.headRefOid' changelog-pr.json)"
latest_release_tag="$(gh api "repos/$GH_REPO/releases/latest" --jq '.tag_name')"
encoded_latest_release_tag="$(jq -rn --arg tag "$latest_release_tag" '$tag|@uri')"
diff_url="$GITHUB_SERVER_URL/$GH_REPO/compare/$encoded_latest_release_tag...$head_sha"

{
echo "Changelog PR: $changelog_pr_url"
echo "Diff to latest release: $diff_url"
} | tee -a "$GITHUB_STEP_SUMMARY"

publish-stable:
needs:
- print-changelog-links
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
Expand Down Expand Up @@ -216,10 +255,14 @@ jobs:

notify-failure:
needs:
- print-changelog-links
- publish-stable
if: |
always() &&
needs.publish-stable.result == 'failure'
(
needs.print-changelog-links.result == 'failure' ||
needs.publish-stable.result == 'failure'
)
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
Expand Down
7 changes: 7 additions & 0 deletions js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# braintrust

## 3.14.0

### Minor Changes

- feat(mastra): Add Mastra auto-instrumentation (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/1901)
- feat: Add `BRAINTRUST_CACHE_LOCATION` env var to control caching location (https://github.com/braintrustdata/braintrust-sdk-javascript/pull/2061)

## 3.13.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "braintrust",
"version": "3.13.0",
"version": "3.14.0",
"description": "SDK for integrating Braintrust",
"repository": {
"type": "git",
Expand Down
Loading