2018-11-22 08:04:14 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2018-11-13 07:31:31 -06:00
|
|
|
# Version key/value should be on his own line
|
|
|
|
PACKAGE_VERSION=$(node -p "require('./package.json').version")
|
|
|
|
|
2018-11-22 08:04:14 -06:00
|
|
|
sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
|