Skip to content

Commit bd0ec5b

Browse files
committed
Use major.minor.patch for version number
1 parent da6b15e commit bd0ec5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
files: "${{github.workspace}}/package.json"
8484
patch-syntax: |
85-
= /version => "${{ steps.gitversion.outputs.semVer }}"
85+
= /version => "${{ steps.gitversion.outputs.majorMinorPatch }}"
8686
8787
# If is a push, and the commit message does not contain the string
8888
# '[release]', build as pre-release. (This is used in the final step.)
@@ -99,13 +99,13 @@ jobs:
9999
- name: Upload .vsix as artifact
100100
uses: actions/upload-artifact@v4
101101
with:
102-
name: yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix
103-
path: ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix
102+
name: yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix
103+
path: ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix
104104

105105
# If this is a push to the main branch, publish to the Marketplace using our configuration.
106106
- name: Publish to Marketplace
107107
if: success() && github.ref == 'refs/heads/main' && github.event_name == 'push'
108108
env:
109109
VSCE_PAT: ${{ secrets.VSCE_PAT }}
110110
run: |
111-
npx vsce publish ${{ env.RELEASE_FLAG }} -i ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.semVer}}.vsix
111+
npx vsce publish ${{ env.RELEASE_FLAG }} -i ${{github.workspace}}/yarn-spinner-${{steps.gitversion.outputs.majorMinorPatch}}.vsix

0 commit comments

Comments
 (0)