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
7 changes: 7 additions & 0 deletions .github/workflows/typescript-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ name: Publish TypeScript SDK
on:
push:
tags: ["v*"]
# Manual re-publish: if a tag shipped before package.json was bumped, fix the
# version on a branch and run this workflow from that ref. Publishing is
# idempotent (it skips a version already on npm), so a manual run is safe.
workflow_dispatch:

permissions:
contents: read
Expand Down Expand Up @@ -53,7 +57,10 @@ jobs:
run: npm ci

# Don't publish a version that doesn't match the tag that triggered this.
# Only meaningful for a tag push; a manual dispatch publishes whatever
# package.json declares (still guarded by the idempotent publish below).
- name: Verify package version matches the tag
if: github.event_name == 'push'
run: |
tag="${GITHUB_REF_NAME#v}"
pkg="$(node -p "require('./package.json').version")"
Expand Down
4 changes: 2 additions & 2 deletions sdks/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@riskkernel/sdk",
"version": "0.6.0",
"version": "0.7.0",
"description": "Thin TypeScript client for the RiskKernel reliability runtime (Surface 2).",
"license": "Apache-2.0",
"author": "Adarsh Prashar",
Expand Down