Merge pull request #91 from DeBrosDAO/nightly

ci(publish-sdk): allow same-version on npm bump
This commit is contained in:
anonpenguin 2026-05-12 10:13:50 +03:00 committed by GitHub
commit b13948d15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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