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

Add autorelease #357

Merged
merged 18 commits into from
Jan 15, 2025
Merged

Add autorelease #357

merged 18 commits into from
Jan 15, 2025

Conversation

billytrend-cohere
Copy link
Collaborator

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

This PR introduces a new workflow for releasing SDKs, including a new package called autorelease. The workflow is triggered manually using workflow_dispatch and runs on Ubuntu. It checks out the repository, sets up pnpm, installs dependencies, and runs snippet tests.

The autorelease package is a new addition to the project, which automates the release process for multiple languages. It includes a new configuration file babel.config.js and a new test configuration file jest.config.ts. The package also contains a new package.json file with dependencies and devDependencies.

The src/index.ts file contains the main logic for the autorelease package. It defines a regular expression versionMatchRegex to match version strings and functions to sort versions, get the latest versions for Python, npm, and Go, and update versions based on a specified update type. It also includes a function to create a release on GitHub using the Octokit library.

The pnpm-lock.yaml file has been updated to include the new autorelease package and its dependencies.

Changes:

  • New workflow for releasing SDKs: release-sdks.yml
  • New package: autorelease
  • New configuration files: babel.config.js, jest.config.ts
  • New package.json file with dependencies and devDependencies
  • New src/index.ts file with the main logic for the autorelease package
  • Updated pnpm-lock.yaml file

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

…dd delete-n-releases workflow for managing releases
Copy link

@billytrend-cohere billytrend-cohere marked this pull request as ready for review January 15, 2025 12:01
@billytrend-cohere billytrend-cohere requested review from a team as code owners January 15, 2025 12:01
Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

Copy link

@billytrend-cohere billytrend-cohere merged commit e39e4ef into main Jan 15, 2025
6 checks passed
@billytrend-cohere billytrend-cohere deleted the billy/autorelease branch January 15, 2025 14:23
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