-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add autorelease #357
Conversation
🌿 Preview your docs: https://cohere-preview-75892877-63c4-42d6-8cef-7ce64683b10b.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-e13537ca-cafc-47fa-8fe4-51992ba42d0d.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-a4302a99-11de-457c-81d7-6a390e40021b.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-1419bfab-48b3-4641-b103-78bacd681c59.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-dd156165-ca2c-414b-8bee-8cedf3865c6a.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-61e92aae-8bb9-448c-8a76-38afacc88573.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-71006b98-8bcb-485c-9c92-b5765a373abb.docs.buildwithfern.com |
ba0b2aa
to
cda495b
Compare
🌿 Preview your docs: https://cohere-preview-feba511f-c694-499e-b529-9b13dd214955.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-837c7644-28ab-4bc0-8337-8664bf3a432d.docs.buildwithfern.com |
…dd delete-n-releases workflow for managing releases
🌿 Preview your docs: https://cohere-preview-37486d8e-7940-479c-ab3f-b3384abc9037.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-3a01f8f2-a0fd-47ee-b175-ed4a6493d34a.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-f6bd3844-681b-4ea6-bbf7-3cca6b01df0a.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-1f4abd7f-0d3c-4316-bc75-07178c999e4b.docs.buildwithfern.com |
…release deletion logic
🌿 Preview your docs: https://cohere-preview-658d6b01-2d92-48db-8af5-d4cfd9a565f3.docs.buildwithfern.com |
…sion handling for new languages
🌿 Preview your docs: https://cohere-preview-6417c0cf-f487-4e67-bc06-f587855ccef1.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-38e4e68e-94eb-4f36-948a-49f9fe5a924a.docs.buildwithfern.com |
🌿 Preview your docs: https://cohere-preview-b2b45a7a-c07f-49c2-a51a-668aded17bfc.docs.buildwithfern.com |
This PR introduces a new workflow for releasing SDKs, including a new package called
autorelease
. The workflow is triggered manually usingworkflow_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 filebabel.config.js
and a new test configuration filejest.config.ts
. The package also contains a newpackage.json
file with dependencies and devDependencies.The
src/index.ts
file contains the main logic for theautorelease
package. It defines a regular expressionversionMatchRegex
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 newautorelease
package and its dependencies.Changes:
release-sdks.yml
autorelease
babel.config.js
,jest.config.ts
package.json
file with dependencies and devDependenciessrc/index.ts
file with the main logic for theautorelease
packagepnpm-lock.yaml
file