-
Notifications
You must be signed in to change notification settings - Fork 0
Add complete CI/CD workflows and release automation #16
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
Merged
Conversation
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
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #15
Fully integrated CI/CD pipelines following the templates: - js-ai-driven-development-pipeline-template - python-ai-driven-development-pipeline-template JavaScript (js.yml): - Changeset validation for PRs - Linting with ESLint, Prettier, and jscpd - Testing on Node.js across Ubuntu, macOS, and Windows - Automated npm publishing with OIDC trusted publishing - Manual release support (instant and changeset-pr modes) - Complete release automation with GitHub releases Python (python.yml): - Changelog fragment validation using scriv - Linting with Ruff and type checking with mypy - Testing with pytest and coverage reporting - Automated PyPI publishing with OIDC trusted publishing - Manual release support with version bumping - Complete release automation with GitHub releases Configuration files added: - JS: .changeset/, .prettierrc, .prettierignore, .jscpd.json, eslint.config.js - Python: changelog.d/, .ruff.toml, .pre-commit-config.yaml Scripts added for both languages: - Version management and changelog collection - Publishing to npm/PyPI - GitHub release creation and formatting - Changeset/fragment validation All changes pass local CI checks: - Python: ruff check, ruff format, mypy - JavaScript: eslint, prettier, tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add required changeset file for the PR to pass CI checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Limit ruff check and format to src/ and tests/ directories, excluding experiments/ which contains temporary files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The validation script requires single quotes around the package name. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Change from 'tests/' to 'tests/*.test.js' for compatibility with Node.js v22 test runner. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Update PACKAGE_NAME from 'my-package' to 'lino-objects-codec' to match the actual package name. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Run Prettier to fix code style issues in README.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit 1f7299a.
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
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.
Summary
This PR adds complete CI/CD workflows and release automation for both JavaScript and Python packages, fully integrated with the templates from:
JavaScript CI/CD (
.github/workflows/js.yml)✅ All features from the template:
Python CI/CD (
.github/workflows/python.yml)✅ All features from the template:
Configuration Files Added
JavaScript
.changeset/- Changeset configuration and files.prettierrc,.prettierignore- Prettier formatting rules.jscpd.json- Code duplication detection configeslint.config.js- ESLint linting rulesPython
changelog.d/- Scriv changelog fragments.ruff.toml- Ruff linting and formatting config.pre-commit-config.yaml- Pre-commit hooks configurationScripts Added
JavaScript (
js/scripts/)changeset-version.mjs- Version management with changesetscreate-github-release.mjs- GitHub release creationcreate-manual-changeset.mjs- Manual changeset creationformat-github-release.mjs- Release notes formattingformat-release-notes.mjs- Release notes generationinstant-version-bump.mjs- Quick version bumpingpublish-to-npm.mjs- npm publishing with OIDCsetup-npm.mjs- npm configuration for trusted publishingvalidate-changeset.mjs- Changeset validationversion-and-commit.mjs- Version updates and commitsPython (
python/scripts/)bump_version.py- Version bumping utilitycheck_file_size.py- File size validationcreate_github_release.py- GitHub release creationcreate_manual_changeset.py- Manual changelog fragment creationformat_release_notes.py- Release notes formattingpublish_to_pypi.py- PyPI publishingvalidate_changeset.py- Changelog fragment validationversion_and_commit.py- Version updates and commitsPackage Updates
JavaScript (
package.json)Added dev dependencies:
@changesets/cli- Changeset managementeslint,eslint-config-prettier,eslint-plugin-prettier- Lintinghusky- Git hooksjscpd- Code duplication detectionlint-staged- Staged file lintingprettier- Code formattingPython (
pyproject.toml)Added dev dependencies:
scriv[toml]- Changelog management (equivalent to changesets)CI Status
All workflows are passing:
Next Steps
Once merged, the automated release workflows will:
package.jsonorpyproject.tomlFor manual releases:
workflow_dispatchonjs.ymlwith instant or changeset-pr modeworkflow_dispatchonpython.ymlwith version bump typeFixes
Fixes #15
🤖 Generated with Claude Code