chore: update#6
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the release GitHub Actions workflow to add extra safety checks around tag releases and adjusts npm publishing behavior.
Changes:
- Fetch full git history and verify the tag’s commit exists on
mainbefore releasing. - Verify
package.jsonversion matches the pushed tag name. - Change npm publish command from
npm publish --access publictonpm publish.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR tightens the npm release workflow by adding pre-publish validation checks to prevent releasing tags that aren’t based on main and to ensure the git tag matches package.json’s version.
Changes:
- Fetch full git history in the release job to enable ancestry checks.
- Add a step to verify the tag’s commit exists on
main. - Add a step to verify
package.jsonversion matches the pushed tag, and simplifynpm publishinvocation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions workflows to tighten release safety checks and move the project’s CI/release runtime forward to newer Node.js versions.
Changes:
- Add release-time guards to ensure the tag commit is reachable from
mainand that the git tag matchespackage.jsonversion. - Bump Node.js used in release workflow to 24 and CI matrix to
[20, 22, 24]. - Simplify npm publish command in the release workflow.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/release.yml | Adds tag/version verification steps; updates Node version; tweaks publish invocation. |
| .github/workflows/ci.yml | Updates the Node.js test matrix versions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| strategy: | ||
| matrix: | ||
| node-version: [18, 20, 22] | ||
| node-version: [20, 22, 24] |
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: '20' | ||
| node-version: '24' |
No description provided.