aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/openapi-peertube-version.sh4
-rwxr-xr-xscripts/release.sh4
2 files changed, 6 insertions, 2 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
diff --git a/scripts/release.sh b/scripts/release.sh
index ccb93bc44..134f2d288 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -60,7 +60,9 @@ fi
60 60
61npm version -f --no-git-tag-version --no-commit-hooks "$1" 61npm version -f --no-git-tag-version --no-commit-hooks "$1"
62 62
63git commit package.json client/package.json -m "Bumped to version $version" 63./scripts/openapi-peertube-version.sh
64
65git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version"
64git tag -s -a "$version" -m "$version" 66git tag -s -a "$version" -m "$version"
65 67
66npm run build 68npm run build