Skip to content

Commit 95ef256

Browse files
DavertMikclaude
andcommitted
ci: --allow-same-version on publish; drop npm@latest upgrade in tests
* publish.yml — `npm version` now passes `--allow-same-version` so a tag matching the package.json version (e.g. re-triggering the same release) doesn't error with "Version not changed". * node.yml — drop `npm install -g npm@latest`. It broke on Node 22 with `Cannot find module 'promise-retry'` after the global install. The npm bundled with Node 20/22/24 is fine for `npm test`; the upgrade is only needed where provenance support matters (the publish job, which runs on Node 24 with a sufficiently recent bundled npm). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 53726dd commit 95ef256

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/node.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ jobs:
2424
- uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
27-
- run: npm install -g npm@latest
2827
- run: npm install
2928
- run: npm test

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- run: npm install
4242

4343
- name: Set package version from release tag
44-
run: npm version "${{ github.event.release.tag_name }}" --no-git-tag-version
44+
run: npm version "${{ github.event.release.tag_name }}" --no-git-tag-version --allow-same-version
4545

4646
- name: Publish to npm
4747
run: |

0 commit comments

Comments
 (0)