Skip to content

Commit 02f9e29

Browse files
committed
add tag for major version
1 parent 8bfe951 commit 02f9e29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: actions/setup-node@v4
2323
with:
2424
node-version-file: .tool-versions
25+
- uses: fregante/setup-git-user@v2
2526

2627
- run: npm ci
2728

@@ -31,9 +32,10 @@ jobs:
3132
with:
3233
commit_message: "build assets"
3334

34-
- uses: fregante/setup-git-user@v2
3535
- run: npm version ${{ github.event.inputs.type }}
3636

37+
- run: git tag -a v$(jq -r '.version' package.json | awk -F. '{print $1}') -m ""
38+
3739
- run: git push --follow-tags
3840

3941
- run: gh release create v$(jq -r '.version' package.json)

0 commit comments

Comments
 (0)