File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1- name : Release & Publish
1+ name : Release & Publish
22run-name : " release ${{ inputs.bump }}"
33
44on :
2222 outputs :
2323 version : ${{ steps.publish.outputs.version }}
2424 tag : ${{ steps.publish.outputs.tag }}
25+ commit_hash : ${{ steps.save_hash.outputs.hash }}
2526 steps :
2627 - uses : actions/checkout@v4
2728 with :
@@ -40,18 +41,14 @@ jobs:
4041 id : commit
4142 uses : stefanzweifel/git-auto-commit-action@v5
4243 with :
43- commit_message : " release: v${{ steps .publish.outputs.version }}"
44+ commit_message : " release: v${{ needs .publish.outputs.version }}"
4445 file_pattern : " package.json"
46+ token : ${{ secrets.GH_PAT }}
4547
4648 - name : Save Commit Hash
4749 id : save_hash
4850 run : echo "hash=${{ steps.commit.outputs.commit_hash || github.sha }}" >> $GITHUB_OUTPUT
4951
50- outputs :
51- version : ${{ steps.publish.outputs.version }}
52- tag : ${{ steps.publish.outputs.tag }}
53- commit_hash : ${{ steps.save_hash.outputs.hash }}
54-
5552 release :
5653 needs : publish
5754 runs-on : ubuntu-latest
6663 tag_name : ${{ needs.publish.outputs.tag }}
6764 name : ${{ needs.publish.outputs.tag }}
6865 generate_release_notes : true
69- target_commitish : ${{ needs.publish.outputs.commit_hash }}
66+ target_commitish : ${{ needs.publish.outputs.commit_hash }}
You can’t perform that action at this time.
0 commit comments