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
26 changes: 21 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
release_tag:
description: Existing signed release tag to retry
required: true
type: string

permissions:
contents: read
Expand All @@ -13,8 +19,12 @@ jobs:
publish:
runs-on: ubuntu-latest
environment: npm
env:
RELEASE_TAG: ${{ github.event_name == 'workflow_dispatch' && inputs.release_tag || github.ref_name }}
steps:
- uses: actions/checkout@v6
with:
ref: ${{ env.RELEASE_TAG }}
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.0
Expand All @@ -24,6 +34,12 @@ jobs:
package-manager-cache: false
- name: Use an OIDC-capable npm CLI
run: npm install --global npm@11.18.0
- name: Verify OIDC runtime identity
run: |
test -n "${ACTIONS_ID_TOKEN_REQUEST_URL:-}"
test -n "${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-}"
npm --version
echo "repository=${GITHUB_REPOSITORY} workflow=release.yml ref=${RELEASE_TAG} environment=npm"
- name: Install exact dependencies
working-directory: typescript
run: bun install --frozen-lockfile
Expand All @@ -37,12 +53,12 @@ jobs:
bun test
bun run build
- name: Validate release tag and public boundary
run: bun run scripts/validate-release.ts "${GITHUB_REF_NAME}"
run: bun run scripts/validate-release.ts "${RELEASE_TAG}"
- name: Publish release candidate with OIDC
if: contains(github.ref_name, '-rc.')
if: contains(env.RELEASE_TAG, '-rc.')
working-directory: typescript
run: npm publish --access public --tag next
run: npm publish --access public --tag next --provenance
- name: Publish stable with OIDC
if: ${{ !contains(github.ref_name, '-rc.') }}
if: ${{ !contains(env.RELEASE_TAG, '-rc.') }}
working-directory: typescript
run: npm publish --access public --tag latest
run: npm publish --access public --tag latest --provenance
2 changes: 1 addition & 1 deletion .sdk-source.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schemaVersion": 1,
"sourceCommit": "07f8895759ea6f2016d62d98cbdf3b6f0f2933ed",
"sourceCommit": "a6786f290e8e0da81eab2c3d8e6fd02a0b97b37d",
"contract": "contracts/2026.07/public-sdk-contract.json",
"packages": [
"typescript"
Expand Down