},
"husky": {
"hooks": {
- "pre-commit": "./scripts/openapi-peertube-version.sh && lint-staged"
+ "pre-commit": "lint-staged"
}
},
"lint-staged": {
+#!/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
+sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
npm version -f --no-git-tag-version --no-commit-hooks "$1"
-git commit package.json client/package.json -m "Bumped to version $version"
+./scripts/openapi-peertube-version.sh
+
+git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "Bumped to version $version"
git tag -s -a "$version" -m "$version"
npm run build
openapi: 3.0.0
info:
title: PeerTube
- version: 1.1.0-alpha.2
+ version: 1.1.0-rc.1
contact:
name: PeerTube Community
url: 'https://joinpeertube.org'