feat(ci): optimize release workflow for dual registry publishing#27
Closed
feat(ci): optimize release workflow for dual registry publishing#27
Conversation
- Implement parallel job execution for 20-30% faster builds - Add GitHub Actions caching for TypeScript and dependencies - Create separate npmjs build configuration with OIDC support - Fix Git flow: tag original commit, then push version updates - Remove redundant dependencies across jobs - Add branch restriction to master only for manual triggers - Add monthly safety net schedule
- Add node-setup action with dependency caching - Add build action with TypeScript incremental builds - Add publish-package action with OIDC authentication - Standardize artifact handling and registry configuration
- Add incremental compilation to tsconfig.json and tsconfig.build.json - Configure shared .tsbuildinfo file for faster builds - Add clean script to remove build artifacts - Remove postversion script to prevent workflow conflicts - Add preversion script to clean cache before versioning
- Visualize optimized workflow flow and dependencies - Document artifact flow between build and publishing jobs - Add parallel execution details and key features - Include usage instructions for manual and scheduled releases
- Add .tsbuildinfo* for incremental build files - Add .envrc and direnv for environment management
- Replace secrets access with input parameter for token passing - Use actions/github-script for proper OIDC token retrieval - Add npm audience for OIDC token requests - Include provenance flag for enhanced npm security
- Add missing create-release dependency for push-changes job - Pass GITHUB_TOKEN to publish-package action for registry auth - Remove NPM_TOKEN usage in favor of OIDC authentication - Ensure proper execution order: publish → create-release → push
- Download release-files artifact for both registries - Fix GitHub Packages publishing with old version number - Both gh and npmjs now get correct package.json with bumped version
- Add lint dependency to publish-gh job to prevent releases on lint failure - Remove dead install job that had no dependents - Update documentation to reflect simplified workflow structure - Ensure code quality gates package publishing
auto-merge was automatically disabled
January 8, 2026 15:23
Pull request was closed
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.
Note
Reworks release pipeline into modular composite actions with artifact/caching flow to publish to GitHub Packages and npmjs (OIDC), adds tagging/release steps, and enables incremental TypeScript builds.
./.github/actions/node-setup,build(TS cache + artifacts), andpublish-package(OIDC + artifact download)..github/workflows/release.yml):version-bumpviarelease-please(manifest-only) withrelease_typeinput; uploadsrelease-files.lintandbuild(cached) →publish-gh; npmjs chain:configure-npmjs(removepublishConfig) →build-npmjs→publish-npmjs(OIDC + provenance).create-release(tag original commit + GitHub release) →push-changes(commitCHANGELOG.md/version)..tsbuildinfointsconfig.jsonandtsconfig.build.json.package.jsonscripts: addclean,preversion; adjust lifecycle hooks..gitignore: ignore.tsbuildinfo*,direnv,.envrc..github/REAMDE.mddocumenting workflow, job dependencies, and artifact flow.Written by Cursor Bugbot for commit 1676de4. This will update automatically on new commits. Configure here.