diff --git a/.gitea/workflows/build_and_puplish.yml b/.gitea/workflows/build_and_puplish.yml index 445c0d4..9437640 100644 --- a/.gitea/workflows/build_and_puplish.yml +++ b/.gitea/workflows/build_and_puplish.yml @@ -22,7 +22,16 @@ jobs: run: npm -g i @vscode/vsce - name: Build Package Files run: npm run package + - name: Update package.json Version + run: npm version ${{ github.ref_name }} --no-git-tag-version + - name: Commit and Push Changes + run: | + git config user.name "${{ USERNAME_GIT }}" + git config user.email "${{ EMAIL_GIT }}" + git add package.json + git commit -m "Update version to ${{ github.ref_name }}" + git push origin HEAD - name: Publish to Visual Studio Marketplace - run: vsce publish ${{ github.ref_name }} + run: vsce publish env: VSCE_PAT: ${{ secrets.VSCODE_MARKETPALCE }}