Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix create release #360

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Fix create release #360

merged 2 commits into from
Jan 16, 2025

Conversation

billytrend-cohere
Copy link
Collaborator

@billytrend-cohere billytrend-cohere commented Jan 15, 2025

This pull request introduces changes to the release creation process, primarily focusing on the create-sdk-releases.yml and create-releases.ts files. The modifications aim to enhance the release workflow by adding a new trigger mechanism and refining the release creation logic.

Summary

  • A new trigger mechanism is added to the release workflow, enabling releases upon a push event.
  • The languages array is updated to include only "python", "typescript", and "go", removing the duplicate "typescript" entry.
  • The createRelease function now uses a new tagName variable, which is formatted using the formatTagName function.
  • The createRelease function is called with the "all" language, ensuring releases for all languages.
  • The bumpType is set to "patch" for the release, indicating a minor update.

Changes

  • New Trigger Mechanism: The create-sdk-releases.yml file now includes a push event trigger, allowing releases to be triggered automatically upon code pushes.
  • Language Array Update: In the create-releases.ts file, the languages array is modified to remove the duplicate "typescript" entry, ensuring a unique list of languages.
  • Refined Release Creation: The createRelease function in create-releases.ts incorporates a new tagName variable, enhancing the release process by providing a formatted tag name.
  • Release for All Languages: The function now handles releases for all languages by setting the language parameter to "all", ensuring consistent releases across all specified languages.
  • Bump Type Specification: The bumpType is set to "patch", indicating a minor update, which is used to determine the next version for the release.

Copy link

Copy link

@billytrend-cohere billytrend-cohere marked this pull request as ready for review January 15, 2025 16:03
@billytrend-cohere billytrend-cohere requested review from a team as code owners January 15, 2025 16:03
@billytrend-cohere billytrend-cohere enabled auto-merge (squash) January 15, 2025 16:03
Copy link

@billytrend-cohere billytrend-cohere merged commit b027bed into main Jan 16, 2025
6 checks passed
@billytrend-cohere billytrend-cohere deleted the billy/fix-release branch January 16, 2025 11:26
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.

2 participants