File tree 1 file changed +19
-4
lines changed
1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 29
29
type : string
30
30
31
31
jobs :
32
- publish :
32
+ release :
33
33
# prevents this action from running on forks
34
34
if : github.repository == 'vuejs/core'
35
35
runs-on : ubuntu-latest
45
45
ref : ${{ inputs.branch }}
46
46
47
47
- name : Install pnpm
48
- uses : pnpm/action-setup@v2
48
+ uses : pnpm/action-setup@v4
49
49
50
50
- name : Install Node.js
51
51
uses : actions/setup-node@v4
@@ -62,10 +62,25 @@ jobs:
62
62
git config user.name "vue-bot"
63
63
git config user.email "<[email protected] >"
64
64
65
- - name : Release
66
- run : pnpm release ${{ inputs.bump != 'custom' && inputs.bump || inputs.custom_version }} --skipPrompts
65
+ - name : Run release script
66
+ id : release
67
+ run : |
68
+ pnpm release ${{ inputs.bump != 'custom' && inputs.bump || inputs.custom_version }} --skipPrompts
69
+ RELEASE_TAG=$(git describe --tags --abbrev=0)
70
+ echo "tag=$RELEASE_TAG" >> $GITHUB_OUTPUT
67
71
env :
68
72
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
69
73
70
74
- name : Push tags
71
75
run : git push -u origin ${{ inputs.branch }} --follow-tags
76
+
77
+ - name : Create Release for Tag
78
+ id : release_tag
79
+ uses : yyx990803/release-tag@master
80
+ env :
81
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
+ with :
83
+ tag_name : ${{ steps.release.outputs.tag }}
84
+ body : |
85
+ For stable releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/main/CHANGELOG.md) for details.
86
+ For pre-releases, please refer to [CHANGELOG.md](https://github.com/vuejs/core/blob/minor/CHANGELOG.md) of the `minor` branch.
You can’t perform that action at this time.
0 commit comments