2018-11-22 09:04:14 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-13 08:31:31 -05:00
|
|
|
# Version key/value should be on his own line
|
|
|
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
|
|
|
2018-11-22 09:04:14 -05:00
|
|
|
sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
|
2020-02-14 08:14:14 -05:00
|
|
|
|
|
|
|
# Sets the package version for libs
|
|
|
|
echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml
|
|
|
|
echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml
|
|
|
|
echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml
|