From bd0ec5b4339d64dd7ccd26971c5cbe5aa9bbaf89 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Sat, 30 Nov 2024 13:05:09 +1100 Subject: [PATCH] Use major.minor.patch for version number --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 021c8d2..f7e9d57 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,7 +82,7 @@ jobs: with: files: "${{github.workspace}}/package.json" patch-syntax: | - = /version => "${{ steps.gitversion.outputs.semVer }}" + = /version => "${{ steps.gitversion.outputs.majorMinorPatch }}" # If is a push, and the commit message does not contain the string # '[release]', build as pre-release. (This is used in the final step.) @@ -99,8 +99,8 @@ jobs: - name: Upload .vsix as artifact uses: actions/upload-artifact@v4 with: - name: yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix - path: ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix + name: yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix + path: ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix # If this is a push to the main branch, publish to the Marketplace using our configuration. - name: Publish to Marketplace @@ -108,4 +108,4 @@ jobs: env: VSCE_PAT: ${{ secrets.VSCE_PAT }} run: | - npx vsce publish ${{ env.RELEASE_FLAG }} -i ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix + npx vsce publish ${{ env.RELEASE_FLAG }} -i ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix