2
1

openapi-peertube-version.sh 222 B

123456
  1. #!/usr/bin/env bash
  2. # Version key/value should be on his own line
  3. PACKAGE_VERSION=$(node -p "require('./package.json').version")
  4. sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml