Skip to content

Commit

Permalink
Use major.minor.patch for version number
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 30, 2024
1 parent da6b15e commit bd0ec5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand All @@ -99,13 +99,13 @@ 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
if: success() && github.ref == 'refs/heads/main' && github.event_name == 'push'
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

0 comments on commit bd0ec5b

Please sign in to comment.