Skip to content

Commit

Permalink
CI/CD Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Mar 3, 2024
1 parent 686bd67 commit 937dee4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 937dee4

Please sign in to comment.