From 445a66548ae6e32f20021a26b710a3fcfac4ac49 Mon Sep 17 00:00:00 2001 From: David Vreony Date: Fri, 27 Aug 2021 09:46:50 +0100 Subject: [PATCH] switch versioning config file to json (#101) * switch versioning config file to json * adjust fetch depth for codeql --- .github/workflows/codeql-analysis.yml | 2 ++ gitversion.yml | 16 ---------------- version.json | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 gitversion.yml create mode 100644 version.json diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index d02f68c3..d058c0d1 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,6 +43,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + with: + fetch-depth: 0 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/gitversion.yml b/gitversion.yml deleted file mode 100644 index 63cb16af..00000000 --- a/gitversion.yml +++ /dev/null @@ -1,16 +0,0 @@ -next-version: 0.2.0 -assembly-versioning-scheme: MajorMinor -assembly-informational-format: '{NuGetVersion}-{sha}' -branches: - master: - mode: ContinuousDelivery - tag: - increment: Patch - prevent-increment-of-merged-branch-version: true - track-merge-target: false - develop: - mode: ContinuousDeployment - tag: alpha - increment: Minor - prevent-increment-of-merged-branch-version: false - track-merge-target: true diff --git a/version.json b/version.json new file mode 100644 index 00000000..7ec02615 --- /dev/null +++ b/version.json @@ -0,0 +1,17 @@ +{ + "version": "0.9", + "publicReleaseRefSpec": [ + "^refs/heads/main$", // we release out of master + "^refs/heads/preview/.*", // we release previews + "^refs/heads/rel/\\d+\\.\\d+\\.\\d+" // we also release branches starting with rel/N.N.N + ], + "nugetPackageVersion":{ + "semVer": 2 + }, + "cloudBuild": { + "setVersionVariables": true, + "buildNumber": { + "enabled": false + } + } +} \ No newline at end of file