Supply chain improvements#34
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR aims to improve the project’s supply-chain posture and modernize the CI/testing toolchain for the npm package by adding an npm release-age cooldown setting, upgrading CI Node versions, and updating the Vitest/Playwright browser testing stack.
Changes:
- Added a project
.npmrcto configure npm’s minimum release age gate. - Updated GitHub Actions workflows to use Node 26 and pinned
actions/checkout/actions/setup-nodeto full commit SHAs. - Upgraded Vitest browser testing to Vitest 4 with the Playwright provider package and updated Playwright/dev dependencies accordingly.
Show a summary per file
| File | Description |
|---|---|
vitest.config.ts |
Switches Vitest browser provider configuration to the Vitest 4 Playwright provider API. |
package.json |
Updates Vitest/Playwright and related dev dependencies (including new @vitest/browser-playwright). |
.npmrc |
Introduces npm min-release-age configuration intended to reduce exposure to newly-published packages. |
.github/workflows/publish.yml |
Pins actions to SHAs and moves publish workflow to Node 26. |
.github/workflows/node.js.yml |
Updates CI matrix to 24.x/26.x and pins actions to SHAs. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 5/6 changed files
- Comments generated: 1
| @@ -0,0 +1 @@ | |||
| min-release-age=3 | |||
manuelpuyol
approved these changes
Jun 3, 2026
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.
Summary
.npmrcwithmin-release-age=3.actions/checkoutto v6.0.3 andactions/setup-nodeto v6.4.0, pinned to full commit SHAs.Ecosystems detected
Recommendations applied
npm ci.id-token: writeandnpm publish --provenance).npm audit fixand resolved reported vulnerabilities.Not applied
package.json.Human review notes
min-release-ageis an unknown project config while still preserving the requested.npmrcsetting.Validation
npm installnpm cinpm run build --if-presentnpm testnpm audit --audit-level=moderate