Skip to content

Conversation

@zguesmi
Copy link
Member

@zguesmi zguesmi commented Oct 20, 2025

@zguesmi zguesmi self-assigned this Oct 20, 2025
@codecov
Copy link

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.85%. Comparing base (50b772f) to head (f375c50).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #297   +/-   ##
=======================================
  Coverage   84.85%   84.85%           
=======================================
  Files          37       37           
  Lines        1241     1241           
  Branches      235      235           
=======================================
  Hits         1053     1053           
  Misses        188      188           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@zguesmi zguesmi marked this pull request as ready for review October 21, 2025 10:15
@zguesmi zguesmi requested review from Le-Caignec and Copilot October 21, 2025 10:15
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

This PR fixes the NPM package publishing workflow by correcting permission issues and adding support for automated prerelease versioning. The changes enable successful publication of both release candidate (RC) and stable versions to NPM.

Key Changes:

  • Moved workflow permissions from top-level to job-level in publish.yml to fix the "Resource not accessible by integration" error
  • Added automated dist-tag determination to distinguish between RC and stable releases
  • Introduced a prerelease npm script for manual RC version bumping

Reviewed Changes

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

Show a summary per file
File Description
.github/workflows/publish.yml Relocated permissions to job level, added dist-tag determination job, and configured tag parameter for reusable workflow
package.json Updated version to 6.1.0-rc.5 and added prerelease script for RC versioning
docs/README.md Added release documentation explaining automated releases and manual prerelease process, renamed section from "Formatting" to "Format"
.github/workflows/upgrade-facets.yml Renamed job from build-and-test to pre-upgrade for consistency
.github/workflows/deploy.yml Renamed job from build-and-test to pre-deploy for consistency
.github/CODEOWNERS Added CODEOWNERS file defining code review responsibilities

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

@@ -0,0 +1,10 @@
# Code owners are automatically requested to review when a pull request
# is opened (ready for review).
# See https://search.brave.com/search?q=About+code+owners+-+GitHub+Docs
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

The URL references a search engine query rather than directly linking to GitHub's official documentation. Consider using the direct documentation link: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

Suggested change
# See https://search.brave.com/search?q=About+code+owners+-+GitHub+Docs
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

Copilot uses AI. Check for mistakes.
Copy link
Member Author

Choose a reason for hiding this comment

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

I used the search link because documentation link could change and it was too long but I can change it back.

@zguesmi zguesmi changed the title ci: Fix NPM publish workflow permissions ci: Fix NPM publish workflow Oct 21, 2025

jobs:
build-and-test:
pre-publish:
Copy link
Contributor

Choose a reason for hiding this comment

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

why set a particular name for this wf ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's to get clearer names here instead of the name repetition. It also helps better debug when there are issues.

image

@zguesmi zguesmi merged commit 950ec4e into main Oct 21, 2025
6 checks passed
@zguesmi zguesmi deleted the ci/fix-npm-publish-workflow branch October 21, 2025 12:53
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