Skip to content

Commit a9e02cb

Browse files
committed
Add release and version #major
1 parent daf67bb commit a9e02cb

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ jobs:
3737
if: github.ref == 'refs/heads/main'
3838
steps:
3939
- uses: actions/checkout@v2
40-
- run: |
40+
with:
41+
fetch-depth: 0
42+
- name: Rebuild dist
43+
run: |
4144
npm install
4245
npm run build
4346
npm run package
@@ -48,3 +51,20 @@ jobs:
4851
git push origin main
4952
git tag --force v1
5053
git push origin v1 --force
54+
- name: Bump version and push tag
55+
uses: anothrNick/[email protected]
56+
id: version
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
WITH_V: true
60+
DEFAULT_BUMP: patch
61+
- name: Create release
62+
if: ${{ steps.version.outputs.new_tag }} != ""
63+
uses: actions/create-release@v1
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
tag_name: ${{ steps.version.outputs.new_tag }}
68+
release_name: Release ${{ steps.version.outputs.new_tag }}
69+
draft: false
70+
prerelease: false

0 commit comments

Comments
 (0)