diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/openapi-peertube-version.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/openapi-peertube-version.sh b/scripts/openapi-peertube-version.sh new file mode 100755 index 000000000..c638291f6 --- /dev/null +++ b/scripts/openapi-peertube-version.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | # Version key/value should be on his own line | ||
2 | PACKAGE_VERSION=$(node -p "require('./package.json').version") | ||
3 | |||
4 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" support/doc/api/openapi.yaml | ||