Bump version number to v0.15.0 and add RC build logic to CI script

This commit is contained in:
PrestonN 2021-10-01 09:37:04 -04:00
parent 25189e2aff
commit 2b864a771f
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ name: Build
on:
push:
branches: [ master, development ]
branches: [ master, development, '**-RC' ]
jobs:
build:
@ -48,13 +48,17 @@ jobs:
uses: actions/github-script@v3
env:
IS_DEV: ${{ contains(github.ref, 'development') }}
IS_RC: ${{ contains(github.ref, 'RC') }}
VERSION_NUMBER_NIGHTLY: ${{ env.PACKAGE_VERSION }}-nightly-${{ github.run_number }}
VERSION_NUMBER_RC: ${{ env.PACKAGE_VERSION }}-RC-${{ github.run_number }}
VERSION_NUMBER: ${{ env.PACKAGE_VERSION }}
with:
result-encoding: string
script: |
if (${{ env.IS_DEV }}) {
return "${{ env.VERSION_NUMBER_NIGHTLY }}"
} else if (${{ env.IS_RC }}) {
return "${{ env.VERSION_NUMBER_RC }}"
} else {
return "${{env.VERSION_NUMBER }}"
}

View File

@ -2,7 +2,7 @@
"name": "freetube",
"productName": "FreeTube",
"description": "A private YouTube client",
"version": "0.14.0",
"version": "0.15.0",
"license": "AGPL-3.0-or-later",
"main": "./dist/main.js",
"private": true,