Skip to content

Sets up CI and publishing for workbench-cli#15

Merged
aboo merged 15 commits into
mainfrom
feature/pap-7012-publish-the-package
Mar 31, 2026
Merged

Sets up CI and publishing for workbench-cli#15
aboo merged 15 commits into
mainfrom
feature/pap-7012-publish-the-package

Conversation

@aboo
Copy link
Copy Markdown
Contributor

@aboo aboo commented Mar 31, 2026

This pull request establishes continuous integration and delivery pipelines for the workbench-cli package.

Key changes include:

  • Continuous Integration: Adds a GitHub Actions workflow to automatically build, type-check, and smoke-test the workbench-cli package on pull requests, ensuring code quality and functionality before merging.
  • Automated Publishing: Introduces a GitHub Actions workflow to publish the workbench-cli package to both npm and JSR whenever a new version tag is pushed, streamlining releases.
  • Release Management: Configures package.json scripts and a dedicated shell script to simplify version bumping, automatic tagging, and pushing release commits.
  • Package Modernization: Updates package.json with a new scoped name (@pap.dev/workbench), module type, and a corrected distribution entry point. Also includes JSR-specific configuration and a comprehensive README.md to guide users.

Relates to PAP-7012

aboo added 15 commits March 27, 2026 16:35
- Rename package to @pap.dev/workbench
- Add build scripts using bun and configure dist directory for distribution
- Set package type to module and add MIT license
- Update .gitignore to exclude build artifacts
- Point package binary to the compiled output in dist/ instead of source
- Update build script and shebang to target the bun runtime instead of node
- Bump version to 0.1.2
- Add jsr.json to support publishing the package to the JSR registry
- Add documentation for the workbench-cli package, including installation, prerequisites, and usage instructions
- Describe the interactive initialization process and configuration output
- Add a version lifecycle script to automatically update the version in jsr.json whenever the package version is bumped
- Ensure the updated jsr.json is staged during the versioning process
- Automatically create a git tag matching the new version after the versioning process is complete
- Add convenience scripts for patch, minor, and major version bumps
- Ensure consistent commit messages when updating the package version
- Provide a script to orchestrate version bumping and pushing tags to origin
- Include a confirmation prompt to prevent accidental releases and ensure the correct release type is selected
- Automate the build and distribution of the workbench-cli package to npm and JSR
- Trigger the workflow whenever a new version tag (v*) is pushed to the repository
- Set up Node.js v22 and configure the npm registry URL
- Required for the npm publish step to execute correctly in the CI environment
This reverts commit 5fa08bd.
- Rename the GitHub Actions workflow file extension from .yaml to .yml for consistency
- Validate pull requests with changes in the workbench-cli package
- Perform type checking, build, and a smoke test using Bun
@aboo aboo merged commit 30ce47e into main Mar 31, 2026
1 check passed
@aboo aboo deleted the feature/pap-7012-publish-the-package branch March 31, 2026 03:35
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.

1 participant