Merged
Conversation
ENG-1210 Setup CI/CD for `post-quantum-packages`
Implement a generic CI/CD pipeline for
|
Greptile OverviewGreptile SummaryThis PR introduces comprehensive CI/CD infrastructure for the monorepo, including change detection, multi-language testing, and automated package publishing across npm, crates.io, and PyPI. Key Changes
Issues Found
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Script as version.ts
participant Git as Git Repository
participant CI as GitHub Actions
participant npm as npm Registry
participant cargo as crates.io
participant pypi as PyPI
Dev->>Script: bun run scripts/version <pkg>/<lang> <bump>
Script->>Script: Read current version from config
Script->>Script: Bump version (major/minor/patch)
Script->>Git: Update config file (package.json/Cargo.toml/pyproject.toml)
Script->>Git: git commit -m "chore(...)"
Script->>Git: git tag <pkg>/<lang>@<version>
Script-->>Dev: Instructions to push
Dev->>Git: git push origin HEAD <tag>
Git->>CI: Trigger workflow based on tag pattern
alt TypeScript (*/ts@*)
CI->>CI: Parse tag for package & version
CI->>CI: bun ci & build
CI->>CI: Verify package.json version matches tag
CI->>npm: bun publish --access public
else Rust (*/rust@*)
CI->>CI: Parse tag for package & version
CI->>CI: Verify Cargo.toml version matches tag
CI->>cargo: cargo publish
else Python (*/python@*)
CI->>CI: Parse tag for package & version
CI->>CI: Verify pyproject.toml version matches tag
CI->>CI: python -m build
CI->>pypi: twine upload dist/*
end
|
Member
Author
|
@greptile review |
Member
Author
|
@greptile review |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds ci & package publishing pipelines.