Skip to content

Commit 9edaf15

Browse files
fix(ci): add --allow-same-version to npm version in publish workflow
When a release/vX.Y.Z PR is merged before the release event triggers the publish workflow, package.json already has the target version. npm version then fails with "Version not changed". Adding --allow-same-version makes the step idempotent so retries work.
1 parent 6eef6b3 commit 9edaf15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
VERSION: ${{ needs.compute-version.outputs.version }}
185185
run: |
186186
git checkout -- package-lock.json
187-
npm version "$VERSION" --no-git-tag-version
187+
npm version "$VERSION" --no-git-tag-version --allow-same-version
188188
node scripts/sync-native-versions.js
189189
echo "Publishing version $VERSION"
190190

0 commit comments

Comments
 (0)