]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - scripts/openapi-peertube-version.sh
Bind expanded rows to item ids instead of row number
[github/Chocobozzz/PeerTube.git] / scripts / openapi-peertube-version.sh
CommitLineData
6cc98dff
C
1#!/usr/bin/env bash
2
1d859b5a
RK
3# Version key/value should be on his own line
4PACKAGE_VERSION=$(node -p "require('./package.json').version")
5
6cc98dff 6sed -i "s/\(^\s*\)version: .*/\1version: $PACKAGE_VERSION/" ./support/doc/api/openapi.yaml
002df381
AD
7
8# Sets the package version for libs
9echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/go.yaml
10echo "artifactVersion: $PACKAGE_VERSION" >> ./support/openapi/kotlin.yaml
11echo "packageVersion: $PACKAGE_VERSION" >> ./support/openapi/python.yaml