@@ -12,36 +12,33 @@ permissions:
1212name : release-please
1313
1414jobs :
15- # release:
16- # runs-on: ubuntu-latest
17- # outputs:
18- # release-published: ${{ steps.release.outputs.release_created }}
19- # steps:
20- # - name: Release please
21- # uses: googleapis/release-please-action@v4
22- # id: release
23- # with:
24- # # this assumes that you have created a personal access token
25- # # (PAT) and configured it as a GitHub action secret named
26- # # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
27- # token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
28- # # this is a built-in strategy in release-please, see "Action Inputs"
29- # # for more options
30- # release-type: node
31- # # create a release from a path other than the repository's root
32- # # path: pkg/cmd
33- # # The short ref name of the branch or tag that triggered
34- # # the workflow run. For example, `main` or `1.x`
35- # # target-branch: ${{ github.ref_name }}
15+ release :
16+ runs-on : ubuntu-latest
17+ outputs :
18+ release-published : ${{ steps.release.outputs.release_created }}
19+ steps :
20+ - name : Release please
21+ uses : googleapis/release-please-action@v4
22+ id : release
23+ with :
24+ # this assumes that you have created a personal access token
25+ # (PAT) and configured it as a GitHub action secret named
26+ # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
27+ token : ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
28+ # this is a built-in strategy in release-please, see "Action Inputs"
29+ # for more options
30+ release-type : node
31+ # create a release from a path other than the repository's root
32+ # path: pkg/cmd
33+ # The short ref name of the branch or tag that triggered
34+ # the workflow run. For example, `main` or `1.x`
35+ # target-branch: ${{ github.ref_name }}
3636
37- # # If true, do not attempt to create releases.
38- # # This is useful if splitting release tagging from PR creation.
39- # # skip-github-release: true
37+ # If true, do not attempt to create releases.
38+ # This is useful if splitting release tagging from PR creation.
39+ # skip-github-release: true
4040
4141 publish :
42- # if: needs.release.outputs.release-published
43- permissions :
44- id-token : write # Required for OIDC
45- contents : read
46- # needs: release
42+ if : needs.release.outputs.release-published
43+ needs : release
4744 uses : ./.github/workflows/publish.yml
0 commit comments