aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/openapi-peertube-version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/openapi-peertube-version.sh')
-rwxr-xr-xscripts/openapi-peertube-version.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/openapi-peertube-version.sh b/scripts/openapi-peertube-version.sh
index 4eb481e64..49154a5f3 100755
--- a/scripts/openapi-peertube-version.sh
+++ b/scripts/openapi-peertube-version.sh
@@ -4,3 +4,8 @@
4PACKAGE_VERSION=$(node -p "require('./package.json').version") 4PACKAGE_VERSION=$(node -p "require('./package.json').version")
5 5
6sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml 6sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
7
8# Sets the package version for libs
9echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml
10echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml
11echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml