Skip to content

fix ci#4

Merged
mohab-sameh merged 2 commits intomainfrom
fix-ci
Apr 21, 2026
Merged

fix ci#4
mohab-sameh merged 2 commits intomainfrom
fix-ci

Conversation

@mohab-sameh
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

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

This PR updates the release pipeline to run only after CI succeeds, and replaces the previous Bash-based tag creation logic with a Node.js implementation while adding a small metadata consistency test for the React 19 migration recipe codemod.

Changes:

  • Switch Release workflow trigger from push to workflow_run (CI-completed) and pin checkout to the CI run’s head_sha.
  • Replace scripts/tag-and-publish.sh with scripts/tag-and-publish.mjs and update the workflow to use it.
  • Add a Node test to keep codemod.yaml/workflow.yaml/README aligned with package.json for react-19-migration-recipe.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/tag-and-publish.sh Removed legacy Bash tagging script.
scripts/tag-and-publish.mjs Added Node-based tagging + changed-dirs output for publish matrix.
.github/workflows/release.yml Run Release only after CI success; invoke new tag script; adjust publish gating/matrix behavior.
codemods/react-19-migration-recipe/scripts/metadata-tests.mjs New metadata sync tests for the recipe codemod.
codemods/react-19-migration-recipe/package.json Add test / check-types scripts so CI picks up the new tests.
CONTRIBUTING.md Update release process description to reflect CI-gated release workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CONTRIBUTING.md
```

When release changesets land on `main`, GitHub Actions:
When release changesets land on `main`, GitHub Actions waits for the `CI` workflow to pass and then:
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

Grammar: “GitHub Actions waits …” is subject/verb disagreement (Actions is plural). Consider changing to “GitHub Actions wait …” or rephrasing the sentence.

Suggested change
When release changesets land on `main`, GitHub Actions waits for the `CI` workflow to pass and then:
When release changesets land on `main`, GitHub Actions wait for the `CI` workflow to pass and then:

Copilot uses AI. Check for mistakes.
Comment on lines +21 to +23
assert.match(codemodYaml, new RegExp(`name: "${packageJson.name.replaceAll("/", "\\/")}"`));
assert.match(codemodYaml, new RegExp(`version: "${packageJson.version}"`));
assert.match(codemodYaml, /workflow: "workflow\.yaml"/);
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

new RegExp(version: "${packageJson.version}") treats . (and other regex metacharacters) in the version string as wildcards, so the test can pass even when codemod.yaml has a different version. Escape the interpolated version (e.g., via an escapeRegExp helper) so the match is exact.

Copilot uses AI. Check for mistakes.
@mohab-sameh mohab-sameh merged commit 0f5c3e7 into main Apr 21, 2026
2 checks passed
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