aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/openapi-peertube-version.sh
blob: 4eb481e6435b277f47feb89722edd00d6aac9aaa (plain) (tree)
1
2
3
4
5
6

                   


                                                              
                                                                                          
#!/usr/bin/env bash

# Version key/value should be on his own line
PACKAGE_VERSION=$(node -p "require('./package.json').version")

sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml