PeerTube/scripts/openapi-peertube-version.sh

5 lines
199 B
Bash
Raw Normal View History

# 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