From 937dee404e3896803bbeafd2e86ee6e5be84ae97 Mon Sep 17 00:00:00 2001 From: Vladislav Tupikin Date: Mon, 4 Mar 2024 02:07:28 +0400 Subject: [PATCH] CI/CD Changes --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6cb3a2b..0ee1e6d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -131,6 +131,28 @@ jobs: git commit -m "Update documentation for version v${{ steps.pkg.outputs.version }}" git push + creating-git-tag: + name: Create Git Tag + needs: + - publish + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Use Node.js 18.x.x + uses: actions/setup-node@v4 + with: + node-version: 18 + - name: Extract version from package.json + run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + - name: Create and Push Git Tag + run: | + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + TAG="v${{ env.version }}" + git tag $TAG + git push origin $TAG + creating-github-release: name: Create GitHub Release needs: