]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/openapi-peertube-version.sh
3 # Version key/value should be on his own line
4 PACKAGE_VERSION
=$(node -p "require('./package.json').version
")
6 sed -i "s
/\
(^\s
*\
)version
: .
*/\
1version
: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
8 # Sets the package version for libs
9 echo "packageVersion
: $PACKAGE_VERSION" >> ./support/openapi/go.yaml
10 echo "artifactVersion
: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml
11 echo "packageVersion
: $PACKAGE_VERSION" >> ./support/openapi/python.yaml