From 40ef46840e553139d3041bf409fd9b51761dbd3b Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Tue, 27 Aug 2024 19:59:02 +0000 Subject: [PATCH 1/5] WIP Auto Semver --- .github/workflows/build.yml | 32 +++++++++++++++++++++++++++++++ .github/workflows/label_check.yml | 18 +++++++++++++++++ package.json | 2 +- renovate.json | 3 ++- 4 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/label_check.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1301a50 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Build VSCode SysMon +on: + - push +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 15 + permissions: + contents: write + packages: write + attestations: write + id-token: write + steps: + # Prepare Job + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 22 + + # Create Release Semver + - name: Generate Semantic Version + id: semver + uses: rapidstack/PR-Label-Semver-Action@v1 + + # Set Project Version + - name: Set Frontend Version + run: npm version ${{ steps.semver.outputs.string }} diff --git a/.github/workflows/label_check.yml b/.github/workflows/label_check.yml new file mode 100644 index 0000000..8568f74 --- /dev/null +++ b/.github/workflows/label_check.yml @@ -0,0 +1,18 @@ +name: Label Checker +on: + pull_request: + types: + - opened + - synchronize + - reopened + - labeled + - unlabeled +jobs: + check_labels: + name: Check labels + runs-on: ubuntu-latest + steps: + - uses: docker://agilepathway/pull-request-label-checker:latest + with: + one_of: major,minor,patch + repo_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index d4fb4f7..b4a7c0c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-sysmon", "displayName": "VSCode SysMon", "description": "Visual Studio Code Extension to show system stats inside the status bar", - "version": "1.0.3", + "version": "0.0.0", "publisher": "isontheline", "sponsor": { "url": "https://github.com/sponsors/isontheline" diff --git a/renovate.json b/renovate.json index 7a60ba2..e5d07ed 100644 --- a/renovate.json +++ b/renovate.json @@ -4,6 +4,7 @@ "config:recommended" ], "labels": [ - "dependency" + "dependency", + "patch" ] } \ No newline at end of file From 48efb78124db2c2b9f5b33c2b7d8f9a4045fc2ab Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:00:16 +0000 Subject: [PATCH 2/5] WIP Auto Semver --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1301a50..b60e102 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,7 +25,7 @@ jobs: # Create Release Semver - name: Generate Semantic Version id: semver - uses: rapidstack/PR-Label-Semver-Action@v1 + uses: rapidstack/PR-Label-Semver-Action@v1.3.6 # Set Project Version - name: Set Frontend Version From fc2ef39fd4aa954214cb1754c89b0eee38f8f7ef Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:01:43 +0000 Subject: [PATCH 3/5] WIP Auto Semver --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b60e102..ca49ede 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,6 +26,8 @@ jobs: - name: Generate Semantic Version id: semver uses: rapidstack/PR-Label-Semver-Action@v1.3.6 + with: + default_bump: patch # Set Project Version - name: Set Frontend Version From a9a965fa75ff93855cf211e5f5b40d2a8f74a1eb Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:02:23 +0000 Subject: [PATCH 4/5] WIP Auto Semver --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ca49ede..f8497a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: id: semver uses: rapidstack/PR-Label-Semver-Action@v1.3.6 with: - default_bump: patch + default-bump: patch # Set Project Version - name: Set Frontend Version From 52f94815750fd092b99f542b70e911da94055721 Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:19:03 +0000 Subject: [PATCH 5/5] WIP Auto Semver --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8497a9..27b15d5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,10 +25,13 @@ jobs: # Create Release Semver - name: Generate Semantic Version id: semver - uses: rapidstack/PR-Label-Semver-Action@v1.3.6 + uses: K-Phoen/semver-release-action@master with: - default-bump: patch + release_branch: main + release_strategy: none + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Set Project Version - name: Set Frontend Version - run: npm version ${{ steps.semver.outputs.string }} + run: npm version ${{ steps.semver.outputs.tag }}