Skip to content

Commit 6a5f24f

Browse files
crisanlucidclaude
andcommitted
fix(ci): restore git state after npm ci before npm version
npm ci can normalize package-lock.json leaving the working tree dirty, which causes `npm version` to abort with "Git working directory not clean". Run `git restore .` after install to discard any such changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 870b5ef commit 6a5f24f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/bump-version.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Install npm packages
3737
run: npm ci
3838

39+
- name: Restore any files dirtied by npm ci
40+
run: git restore .
41+
3942
- name: Setup Git
4043
run: |
4144
git config user.name 'Lucian Bot'

0 commit comments

Comments
 (0)