File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,28 @@ jobs:
131
131
git commit -m "Update documentation for version v${{ steps.pkg.outputs.version }}"
132
132
git push
133
133
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
+
134
156
creating-github-release :
135
157
name : Create GitHub Release
136
158
needs :
You can’t perform that action at this time.
0 commit comments