File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change 11name : release
22
33on :
4- pull_request_target :
5- types : [closed]
6- branches :
7- - main
4+ push :
5+ tags :
6+ - " v*"
87
98# Remove default permissions of GITHUB_TOKEN for security
109# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
1110permissions : {}
1211
1312jobs :
1413 release :
15- if : github.repository_owner == 'nuxt' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'v')
1614 concurrency :
1715 group : release
1816 permissions :
3836 run : pnpm dev:prepare
3937
4038 - name : 🛠 Build and release project
41- run : pnpm changelogen --publish
42-
43- - name : 🏷️ Create tag
44- env :
45- TAG_NAME : ${{ github.event.pull_request.head.ref }}
46- run : |
47- git tag "$TAG_NAME"
48- git push origin "$TAG_NAME"
49-
50- - name : 🛳️ Create GitHub release
51- env :
52- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53- TAG_NAME : ${{ github.event.pull_request.head.ref }}
54- RELEASE_NAME : ${{ github.event.pull_request.head.ref }}
55- BODY : ${{ github.event.pull_request.body }}
56- run : gh release create "$TAG_NAME" --title "$RELEASE_NAME" --notes "$BODY"
39+ run : pnpm publish
You can’t perform that action at this time.
0 commit comments