Skip to content

ci: commit package-lock.json in the release PR#87

Merged
rot1024 merged 1 commit into
mainfrom
ci/release-include-lockfile
Jun 9, 2026
Merged

ci: commit package-lock.json in the release PR#87
rot1024 merged 1 commit into
mainfrom
ci/release-include-lockfile

Conversation

@rot1024

@rot1024 rot1024 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Problem

The release workflow runs npm version <type> --no-git-tag-version, which bumps both package.json and package-lock.json. But the "Create release branch and commit" step only staged package.json and CHANGELOG.md, so the lockfile version was never committed.

As a result the lockfile's version field drifted — it sat at 1.8.4 through the v1.9.0 and v1.9.1 releases while package.json moved on.

This is harmless for publishing (the lockfile isn't published and npm ci doesn't fail on the root version field), but it's a hygiene issue: a fresh npm install produces a spurious lockfile diff.

Fix

Stage package-lock.json in the release commit too.

The current release PR (v1.10.0, #86) has already had its lockfile synced manually; this keeps every future release in sync automatically.

npm version bumps the lockfile alongside package.json, but the release commit
only staged package.json and CHANGELOG.md, so the lockfile version drifted
(stuck at 1.8.4 across v1.9.0/v1.9.1). Stage package-lock.json too.
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 97.5% 703 / 721
🔵 Statements 93.45% 785 / 840
🔵 Functions 95.18% 178 / 187
🔵 Branches 85.39% 503 / 589
File CoverageNo changed files found.
Generated in workflow #552 for commit 497f1dc by the Vitest Coverage Report Action

@rot1024 rot1024 merged commit 4119d75 into main Jun 9, 2026
2 checks passed
@rot1024 rot1024 deleted the ci/release-include-lockfile branch June 9, 2026 11:55
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.

1 participant