From e49d3ac2117f8f01331c6658cd6ebce1964ef644 Mon Sep 17 00:00:00 2001 From: hyp3r00t Date: Wed, 17 Jul 2024 16:56:51 +0530 Subject: [PATCH] ci testing --- .github/workflows/ci.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d40a7c..d23d56c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,12 +29,26 @@ jobs: npm install -g vsce vsce package + - name: Auto-increment version and tag + id: versioning + run: | + # Increment the version and create a new tag + NEW_VERSION=$(npm version patch -m "Release version %s") + echo "New version: $NEW_VERSION" + # Output the new tag + echo "new_tag=$NEW_VERSION" >> $GITHUB_ENV + + - name: Push changes + run: | + git push origin HEAD + git push origin ${{ env.new_tag }} + - name: Create Release id: create_release uses: ncipollo/release-action@v1 with: - tag: v${{ github.ref_name }} - name: Release ${{ github.ref }} + tag: v${{ env.new_tag }} + name: Release ${{ env.new_tag }} artifacts: ./*.vsix draft: false prerelease: false \ No newline at end of file