This reverts commit d1c8ad9ea0.
This commit is contained in:
23
.github/workflows/pre-release.yml
vendored
23
.github/workflows/pre-release.yml
vendored
@@ -69,14 +69,27 @@ jobs:
|
|||||||
- name: Determine and update versions
|
- name: Determine and update versions
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
|
# Get the latest version from npm registry
|
||||||
|
latest_npm_version=$(npm view vibe-kanban version 2>/dev/null || echo "0.0.0")
|
||||||
|
echo "Latest npm version: $latest_npm_version"
|
||||||
|
|
||||||
timestamp=$(date +%Y%m%d%H%M%S)
|
timestamp=$(date +%Y%m%d%H%M%S)
|
||||||
|
|
||||||
# Hardcoded version
|
# Update root package.json based on npm version, not current package.json
|
||||||
new_version="0.0.146"
|
if [[ "${{ github.event.inputs.version_type }}" == "prerelease" ]]; then
|
||||||
new_tag="v${new_version}-${timestamp}"
|
# For prerelease, use current package.json version and add branch suffix
|
||||||
|
npm version prerelease --preid="${{ steps.branch.outputs.suffix }}" --no-git-tag-version
|
||||||
|
|
||||||
# Update root package.json
|
new_version=$(node -p "require('./package.json').version")
|
||||||
npm version $new_version --no-git-tag-version --allow-same-version
|
new_tag="v${new_version}.${timestamp}"
|
||||||
|
else
|
||||||
|
# For regular releases, use npm version and bump it
|
||||||
|
npm version $latest_npm_version --no-git-tag-version --allow-same-version
|
||||||
|
npm version ${{ github.event.inputs.version_type }} --no-git-tag-version
|
||||||
|
|
||||||
|
new_version=$(node -p "require('./package.json').version")
|
||||||
|
new_tag="v${new_version}-${timestamp}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Update npx-cli package.json to match
|
# Update npx-cli package.json to match
|
||||||
cd npx-cli
|
cd npx-cli
|
||||||
|
|||||||
Reference in New Issue
Block a user