Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Conversation

@sapientpants
Copy link
Owner

Summary

  • Adds a build step before running changeset version command in CI
  • Ensures custom changelog generator is available during versioning
  • Cleans build directory before final release build for accurate SBOM

Problem

The CI pipeline was failing when trying to use the custom changelog generator because it wasn't built before the changeset version command ran. The TypeScript file needs to be compiled to JavaScript first.

Solution

  1. Added a build step specifically for changeset before the version management phase
  2. Clean and rebuild before final release to ensure SBOM reflects exact artifacts

Changes Made

  • Added "Build for changeset" step before versioning in .github/workflows/main.yml
  • Modified final build step to clean before building for release

Test Plan

  • Workflow passes all validation checks
  • All tests pass
  • CI pipeline runs successfully with custom changelog generator

🤖 Generated with Claude Code

sapientpants and others added 2 commits September 14, 2025 08:26
- Build TypeScript before running changeset version command
- Required for custom changelog generator (changelog-custom.js)
- Clean build directory before final release build
- Ensures SBOM reflects exact release artifacts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 14, 2025 06:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes CI pipeline failure by adding necessary build steps for changeset versioning and ensuring clean release builds.

  • Adds build step before changeset version command to compile TypeScript changelog generator
  • Implements clean build process for release to ensure accurate SBOM generation
  • Resolves CI failure when using custom changelog generator that requires compiled JavaScript

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/main.yml Adds build step before versioning and implements clean build for release
.changeset/fix-changeset-build.md Documents the CI pipeline fix for changeset build requirements

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@deepsource-io
Copy link

deepsource-io bot commented Sep 14, 2025

Here's the code health analysis summary for commits b7ab8d4..9dee1a2. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

Code Coverage Report

MetricAggregateJavascript
Branch Coverage88%88%
Composite Coverage89.6%89.6%
Line Coverage90%90%

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@sapientpants sapientpants merged commit 1603c83 into main Sep 14, 2025
10 checks passed
@sapientpants sapientpants deleted the fix/changeset-build branch September 14, 2025 06:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant