aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/openapi-peertube-version.sh
blob: c638291f6a08dd12a7ecf1ad4a338df19bfb8e8e (plain) (blame)
1
2
3
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