sync API version with PeerTube version and auto-update it via git hooks

This commit is contained in:
Rigel Kent
2018-11-13 14:31:31 +01:00
parent 408f50ebc7
commit 1d859b5afa
3 changed files with 6 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
# 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