]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - scripts/openapi-peertube-version.sh
Bind expanded rows to item ids instead of row number
[github/Chocobozzz/PeerTube.git] / scripts / openapi-peertube-version.sh
1 #!/usr/bin/env bash
2
3 # Version key/value should be on his own line
4 PACKAGE_VERSION=$(node -p "require('./package.json').version")
5
6 sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
7
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