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
12 changes: 12 additions & 0 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ on:
description: "Options to pass to Node.js when running npm commands"
required: false
type: string
npm_tag:
description: "Custom npm dist-tag to use instead of 'latest' for non-prerelease versions. Useful when publishing multiple major version lines (e.g., '2024.01' for versions/2024.01 branch)."
required: false
type: string
secrets:
github_access_token:
description: A GitHub access token with write access to the repo
Expand Down Expand Up @@ -309,6 +313,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
NODE_OPTIONS: ${{ inputs.node_options }}
NPM_TAG: ${{ inputs.npm_tag }}
run: |
VERSION=$(npm pkg get version | tr -d '"')
echo "Detected version: $VERSION"
Expand All @@ -318,6 +323,9 @@ jobs:
TAG=${PRERELEASE%%.*}
echo "Prerelease detected; publishing under dist-tag: $TAG"
npm publish --tag "$TAG" --access public
elif [[ -n "$NPM_TAG" ]]; then
echo "Custom tag provided; publishing under dist-tag: $NPM_TAG"
npm publish --tag "$NPM_TAG" --access public
else
echo "Official release detected; publishing under 'latest'"
npm publish --access public
Expand Down Expand Up @@ -420,6 +428,7 @@ jobs:
- run: npm rebuild bun
- env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
NPM_TAG: ${{ inputs.npm_tag }}
run: |
VERSION=$(npm pkg get version | tr -d '"')
echo "Detected version: $VERSION"
Expand All @@ -429,6 +438,9 @@ jobs:
TAG=${PRERELEASE%%.*}
echo "Prerelease detected; publishing under dist-tag: $TAG"
npm publish --tag "$TAG" --access public
elif [[ -n "$NPM_TAG" ]]; then
echo "Custom tag provided; publishing under dist-tag: $NPM_TAG"
npm publish --tag "$NPM_TAG" --access public
else
echo "Official release detected; publishing under 'latest'"
npm publish --access public
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ on:
default: true
required: false
type: boolean
npm_tag:
description: "Custom npm dist-tag to use instead of 'latest' for non-prerelease versions"
required: false
type: string
secrets:
github_access_token:
description: A GitHub access token with write access to the repo
Expand Down Expand Up @@ -427,6 +431,7 @@ jobs:
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
NPM_TAG: ${{ inputs.npm_tag }}
run: |
VERSION=$(npm pkg get version | tr -d '"')
echo "Detected version: $VERSION"
Expand All @@ -436,6 +441,9 @@ jobs:
TAG=${PRERELEASE%%.*}
echo "Prerelease detected; publishing under dist-tag: $TAG"
npm publish --tag "$TAG" --access public
elif [[ -n "$NPM_TAG" ]]; then
echo "Custom tag provided; publishing under dist-tag: $NPM_TAG"
npm publish --tag "$NPM_TAG" --access public
else
echo "Official release detected; publishing under 'latest'"
npm publish --access public
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ output.txt
openapi/
*.iml
.run
.vscode/
.vscode/
.DS_Store
Loading