From 793effd85d5e4ddb7361cebc9f1c51dea32d3884 Mon Sep 17 00:00:00 2001 From: Christoph Brandau Date: Wed, 8 Jan 2025 11:35:45 +0100 Subject: [PATCH] update workflow --- .gitea/workflows/build_and_puplish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 }}