openapi-peertube-version.sh 475 B

1234567891011
  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
  5. # Sets the package version for libs
  6. echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml
  7. echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml
  8. echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml