Skip to content

Commit

Permalink
[GH-168] Prepare release v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pablojvritx committed Jun 6, 2024
1 parent 7f69d9d commit 77784c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ts-api [![Version](https://img.shields.io/badge/Version-v2.0.0-blue.svg)](https://semver.org)
# ts-api [![Version](https://img.shields.io/badge/Version-v2.1.0-blue.svg)](https://semver.org)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=vinjatovix_ts-api&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=vinjatovix_ts-api)

## Quality report
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: ts-api:2.0.0
image: ts-api:2.1.0
container_name: ts-api
ports:
- "3000:3000"
11 changes: 5 additions & 6 deletions scripts/update_readme_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ if [[ ! "$BRANCH" =~ ^release/ ]]; then
fi

# Obtain the current version
CURRENT_VERSION=$(node -p "require('./package.json').version")
CURRENT_VERSION=$(git describe --tags --abbrev=0 | sed 's/^v//')
NEW_VERSION=$(node -p "require('./package.json').version")

# Obtain the new version without creating a git tag and remove 'v' prefix
NEW_VERSION=$(npm --no-git-tag-version version "$RELEASE_TYPE" | sed 's/^v//')

echo -e "Current version: ${GREEN}$CURRENT_VERSION${NC}"
echo -e "New version: ${GREEN}$NEW_VERSION${NC}"
echo -e "Last tag: ${GREEN}$CURRENT_VERSION${NC}"
echo -e "New release: ${GREEN}$NEW_VERSION${NC}"
# NEW_VERSION=$(npm --no-git-tag-version version "$RELEASE_TYPE" | sed 's/^v//')

# Function to replace version in files
replace_version() {
Expand Down
4 changes: 2 additions & 2 deletions src/apps/apiApp/openApi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ info:
license:
name: MIT License
url: https://github.com/vinjatovix/ts-api/blob/develop/LICENSE.md
version: '2.0.0'
version: '2.1.0'

servers:
- url: HOST
Expand Down Expand Up @@ -894,7 +894,7 @@ components:
status:
type: string
example:
version: 2.0.0
version: 2.1.0
status: OK

Author:
Expand Down

0 comments on commit 77784c8

Please sign in to comment.