Skip to content

feat(ci): optimize release workflow for dual registry publishing#27

Closed
Mearman wants to merge 9 commits intomasterfrom
feature/npmjs-publishing-workflow
Closed

feat(ci): optimize release workflow for dual registry publishing#27
Mearman wants to merge 9 commits intomasterfrom
feature/npmjs-publishing-workflow

Conversation

@Mearman
Copy link
Contributor

@Mearman Mearman commented Dec 10, 2025

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.

  • CI/Release:
    • Modular actions: add ./.github/actions/node-setup, build (TS cache + artifacts), and publish-package (OIDC + artifact download).
    • Workflow overhaul (.github/workflows/release.yml):
      • version-bump via release-please (manifest-only) with release_type input; uploads release-files.
      • Parallelized lint and build (cached) → publish-gh; npmjs chain: configure-npmjs (remove publishConfig) → build-npmjspublish-npmjs (OIDC + provenance).
      • create-release (tag original commit + GitHub release) → push-changes (commit CHANGELOG.md/version).
      • Adds manual/scheduled triggers; removes push trigger; includes dry-run summary.
  • TypeScript/Build:
    • Enable incremental builds with .tsbuildinfo in tsconfig.json and tsconfig.build.json.
    • package.json scripts: add clean, preversion; adjust lifecycle hooks.
    • .gitignore: ignore .tsbuildinfo*, direnv, .envrc.
  • Docs:
    • Add .github/REAMDE.md documenting workflow, job dependencies, and artifact flow.

Written by Cursor Bugbot for commit 1676de4. This will update automatically on new commits. Configure here.

- 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
@Mearman Mearman requested a review from a team December 10, 2025 22:46
- 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
@Mearman Mearman requested a review from lukeramsden December 10, 2025 23:21
- 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
@Mearman Mearman enabled auto-merge (rebase) December 10, 2025 23:23
- 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
@lukeramsden lukeramsden closed this Jan 8, 2026
auto-merge was automatically disabled January 8, 2026 15:23

Pull request was closed

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.

2 participants