Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ jobs:

- name: Set npm version from tag
working-directory: npm
run: npm version ${{ needs.validate-tag.outputs.semver }} --no-git-tag-version
# --allow-same-version: the in-repo package.json is already bumped to the
# release version (e.g. 26.5.0), so a plain `npm version` aborts with
# "Version not changed" and blocks the publish. This makes the step a
# no-op when already at the target version rather than failing.
run: npm version ${{ needs.validate-tag.outputs.semver }} --no-git-tag-version --allow-same-version

- name: Publish to npm
working-directory: npm
Expand Down Expand Up @@ -237,7 +241,11 @@ jobs:

- name: Set npm version from tag
working-directory: pi
run: npm version ${{ needs.validate-tag.outputs.semver }} --no-git-tag-version
# --allow-same-version: the in-repo package.json is already bumped to the
# release version (e.g. 26.5.0), so a plain `npm version` aborts with
# "Version not changed" and blocks the publish. This makes the step a
# no-op when already at the target version rather than failing.
run: npm version ${{ needs.validate-tag.outputs.semver }} --no-git-tag-version --allow-same-version

- name: Publish to npm
working-directory: pi
Expand Down
Loading