]>
Commit | Line | Data |
---|---|---|
6cc98dff C |
1 | #!/usr/bin/env bash |
2 | ||
1d859b5a RK |
3 | # Version key/value should be on his own line |
4 | PACKAGE_VERSION=$(node -p "require('./package.json').version") | |
5 | ||
6cc98dff | 6 | sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml |
002df381 AD |
7 | |
8 | # Sets the package version for libs | |
9 | echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml | |
10 | echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml | |
11 | echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml |