1
0
Fork 0
peertube/scripts/openapi-peertube-version.sh
2018-11-22 15:04:14 +01:00

6 lines
222 B
Bash
Executable file

#!/usr/bin/env bash
# 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