Add open api bump version in release script

This commit is contained in:
Chocobozzz
2018-11-22 15:04:14 +01:00
parent 326b44070b
commit 6cc98dfff3
4 changed files with 8 additions and 4 deletions

View File

@@ -1,4 +1,6 @@
#!/usr/bin/env bash
# Version key/value should be on his own line
PACKAGE_VERSION=$(node -p "require('./package.json').version")
sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" support/doc/api/openapi.yaml
sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml