1414 - major
1515
1616jobs :
17+ setup :
18+ runs-on : ubuntu-latest
19+ permissions :
20+ contents : write
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - uses : ./.github/actions/setup
27+
1728 publish :
29+ needs : setup
1830 runs-on : ubuntu-latest
1931 permissions :
2032 contents : write
@@ -34,21 +46,36 @@ jobs:
3446 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3547 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3648
49+ outputs :
50+ version : ${{ steps.publish.outputs.version }}
51+ tag : ${{ steps.publish.outputs.tag }}
52+
53+ commit :
54+ needs : publish
55+ runs-on : ubuntu-latest
56+ permissions :
57+ contents : write
58+ steps :
3759 - name : Commit release version
3860 id : commit
3961 uses : stefanzweifel/git-auto-commit-action@v5
4062 with :
41- commit_message : " release: v${{ steps .publish.outputs.version }}"
63+ commit_message : " release: v${{ needs .publish.outputs.version }}"
4264 file_pattern : " package.json"
4365
66+ outputs :
67+ commit_hash : ${{ steps.commit.outputs.commit_hash }}
68+
69+ release :
70+ needs : [publish, commit]
71+ runs-on : ubuntu-latest
72+ permissions :
73+ contents : write
74+ steps :
4475 - name : Create GitHub release
4576 uses : softprops/action-gh-release@v2
4677 with :
47- tag_name : " v${{ steps .publish.outputs.version }}"
48- name : " v${{ steps .publish.outputs.version }}"
78+ tag_name : " v${{ needs .publish.outputs.tag }}"
79+ name : " v${{ needs .publish.outputs.version }}"
4980 generate_release_notes : true
50- target_commitish : ${{ steps.commit.outputs.commit_hash }}
51-
52- outputs :
53- version : ${{ steps.publish.outputs.version }}
54- tag : ${{ steps.publish.outputs.tag }}
81+ target_commitish : ${{ needs.commit.outputs.commit_hash }}
0 commit comments