mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-06 04:21:03 +00:00
Remove DEVELOPMENT.md and enhance KEYS.md with detailed key ordering philosophy and examples. Update README.md to reflect changes in testing coverage and tooling, and improve vendor extension documentation with enhanced IntelliSense features and examples. Refactor vendor extension loading and validation for better type safety and usability.
This commit is contained in:
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -57,20 +57,27 @@ jobs:
|
||||
ver=$(node -p "require('./package.json').version")
|
||||
echo "version=$ver" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# Check if version was already bumped in this commit
|
||||
# Check if version was already bumped
|
||||
- name: Check if version was bumped
|
||||
id: version-check
|
||||
shell: bash
|
||||
run: |
|
||||
# Get the previous commit's version
|
||||
PREV_VERSION=$(git show HEAD~1:package.json 2>/dev/null | node -p "require('./package.json').version" 2>/dev/null || echo "0.0.0")
|
||||
# Get the latest GitHub release version
|
||||
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/${{ github.repository }}/releases/latest" | node -p "JSON.parse(require('fs').readFileSync('/dev/stdin', 'utf8')).tag_name" 2>/dev/null || echo "")
|
||||
CURRENT_VERSION="${{ steps.current-version.outputs.version }}"
|
||||
|
||||
echo "Previous version: $PREV_VERSION"
|
||||
echo "Latest release: $LATEST_RELEASE"
|
||||
echo "Current version: $CURRENT_VERSION"
|
||||
|
||||
if [ "$PREV_VERSION" != "$CURRENT_VERSION" ]; then
|
||||
echo "Version was already bumped from $PREV_VERSION to $CURRENT_VERSION"
|
||||
# Remove 'v' prefix from release tag for comparison
|
||||
if [ -n "$LATEST_RELEASE" ]; then
|
||||
LATEST_VERSION=$(echo "$LATEST_RELEASE" | sed 's/^v//')
|
||||
else
|
||||
LATEST_VERSION="0.0.0"
|
||||
fi
|
||||
|
||||
if [ "$LATEST_VERSION" != "$CURRENT_VERSION" ]; then
|
||||
echo "Version was already bumped from $LATEST_VERSION to $CURRENT_VERSION"
|
||||
echo "bumped=false" >> "$GITHUB_OUTPUT"
|
||||
echo "final_version=$CURRENT_VERSION" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user