File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 37
37
if : github.ref == 'refs/heads/main'
38
38
steps :
39
39
- uses : actions/checkout@v2
40
- - run : |
40
+ with :
41
+ fetch-depth : 0
42
+ - name : Rebuild dist
43
+ run : |
41
44
npm install
42
45
npm run build
43
46
npm run package
48
51
git push origin main
49
52
git tag --force v1
50
53
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
You can’t perform that action at this time.
0 commit comments