aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/openapi-peertube-version.sh
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-11-22 15:04:14 +0100
committerChocobozzz <me@florianbigard.com>2018-11-22 15:04:14 +0100
commit6cc98dfff3d021c0c75e618e251fc99706459bf2 (patch)
treec8cfcef2e48f765053259f5d5ee02c948d9ead73 /scripts/openapi-peertube-version.sh
parent326b44070b32210f12f53e52288047cb7652a13d (diff)
downloadPeerTube-6cc98dfff3d021c0c75e618e251fc99706459bf2.tar.gz
PeerTube-6cc98dfff3d021c0c75e618e251fc99706459bf2.tar.zst
PeerTube-6cc98dfff3d021c0c75e618e251fc99706459bf2.zip
Add open api bump version in release script
Diffstat (limited to 'scripts/openapi-peertube-version.sh')
-rwxr-xr-xscripts/openapi-peertube-version.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/openapi-peertube-version.sh b/scripts/openapi-peertube-version.sh
index c638291f6..4eb481e64 100755
--- a/scripts/openapi-peertube-version.sh
+++ b/scripts/openapi-peertube-version.sh
@@ -1,4 +1,6 @@
1#!/usr/bin/env bash
2
1# Version key/value should be on his own line 3# Version key/value should be on his own line
2PACKAGE_VERSION=$(node -p "require('./package.json').version") 4PACKAGE_VERSION=$(node -p "require('./package.json').version")
3 5
4sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" support/doc/api/openapi.yaml 6sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml