From 174e3f66c40a800a3642f6000f00c582fad7e56a Mon Sep 17 00:00:00 2001 From: Josh Mu Date: Fri, 11 Oct 2024 12:37:28 +1000 Subject: [PATCH] semantic pipeline test --- .github/workflows/publish-vscode-extension.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-vscode-extension.yml b/.github/workflows/publish-vscode-extension.yml index b12dd04..4dbc684 100644 --- a/.github/workflows/publish-vscode-extension.yml +++ b/.github/workflows/publish-vscode-extension.yml @@ -15,7 +15,17 @@ jobs: node-version: 20 - run: npm ci - name: Semantic Release - run: npx semantic-release + id: semantic + uses: cycjimmy/semantic-release-action@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Force patch bump if no release + if: steps.semantic.outputs.new_release_published != 'true' + run: | + git config --local user.email "github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + npm version patch -m "chore(release): bump version to %s [skip ci]" + git push --follow-tags env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}