mirror of
https://github.com/DeBrosOfficial/orama.git
synced 2026-06-16 22:54:12 +00:00
ci(publish-sdk): allow same-version on npm bump
When /VERSION is bumped on the source branch before tagging, the SDK package.json already matches the release tag. Without --allow-same-version, npm version errors as 'Version not changed' and the workflow fails on stable main releases (nightly worked by accident because the bump was done in the previous commit cycle and package.json was a step behind).
This commit is contained in:
parent
58d541d9ee
commit
c8a0969c59
8
.github/workflows/publish-sdk.yml
vendored
8
.github/workflows/publish-sdk.yml
vendored
@ -61,9 +61,13 @@ jobs:
|
||||
if [ "${{ github.event_name }}" = "release" ]; then
|
||||
VERSION="${{ github.event.release.tag_name }}"
|
||||
VERSION="${VERSION#v}"
|
||||
npm version "$VERSION" --no-git-tag-version
|
||||
# --allow-same-version: when /VERSION was already bumped on the
|
||||
# source branch before tagging, package.json may already match
|
||||
# the tag. npm version errors as 'Version not changed' without
|
||||
# this flag.
|
||||
npm version "$VERSION" --no-git-tag-version --allow-same-version
|
||||
elif [ -n "${{ inputs.version }}" ]; then
|
||||
npm version ${{ inputs.version }} --no-git-tag-version
|
||||
npm version ${{ inputs.version }} --no-git-tag-version --allow-same-version
|
||||
fi
|
||||
|
||||
- name: Typecheck
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user