add --allow-same-version flag to npx-cli version upgrade, add package-lock to git commit (#106)

This commit is contained in:
Anastasiia Solop
2025-07-09 11:05:11 +02:00
committed by GitHub
parent f55ab55fc9
commit fd3adb19e3

View File

@@ -92,7 +92,7 @@ jobs:
# Update npx-cli package.json to match
cd npx-cli
npm version $new_version --no-git-tag-version
npm version $new_version --no-git-tag-version --allow-same-version
cd ..
cd backend && cargo set-version "$new_version"
@@ -105,7 +105,7 @@ jobs:
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add package.json npx-cli/package.json backend/Cargo.toml
git add package.json package-lock.json npx-cli/package.json backend/Cargo.toml
git commit -m "chore: bump version to ${{ steps.version.outputs.new_version }}"
git tag -a ${{ steps.version.outputs.new_tag }} -m "Release ${{ steps.version.outputs.new_tag }}"
git push