Skip to content

Commit 937dee4

Browse files
committed
CI/CD Changes
1 parent 686bd67 commit 937dee4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,28 @@ jobs:
131131
git commit -m "Update documentation for version v${{ steps.pkg.outputs.version }}"
132132
git push
133133
134+
creating-git-tag:
135+
name: Create Git Tag
136+
needs:
137+
- publish
138+
runs-on: ubuntu-latest
139+
steps:
140+
- name: Checkout sources
141+
uses: actions/checkout@v4
142+
- name: Use Node.js 18.x.x
143+
uses: actions/setup-node@v4
144+
with:
145+
node-version: 18
146+
- name: Extract version from package.json
147+
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
148+
- name: Create and Push Git Tag
149+
run: |
150+
git config user.name "GitHub Actions"
151+
git config user.email "[email protected]"
152+
TAG="v${{ env.version }}"
153+
git tag $TAG
154+
git push origin $TAG
155+
134156
creating-github-release:
135157
name: Create GitHub Release
136158
needs:

0 commit comments

Comments
 (0)