File tree Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Expand file tree Collapse file tree 3 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 1212 post_version_spec :
1313 description : " Post Version Specifier"
1414 required : false
15- # silent:
16- # description: "Set a placeholder in the changelog and don't publish the release."
17- # required: false
18- # type: boolean
15+ silent :
16+ description : " Set a placeholder in the changelog and don't publish the release."
17+ required : false
18+ type : boolean
1919 since :
2020 description : " Use PRs with activity since this date or git reference"
2121 required : false
2626jobs :
2727 prep_release :
2828 runs-on : ubuntu-latest
29+ permissions :
30+ contents : write
2931 steps :
3032 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
3133
3234 - name : Prep Release
3335 id : prep-release
3436 uses : jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
3537 with :
36- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
38+ token : ${{ secrets.GITHUB_TOKEN }}
3739 version_spec : ${{ github.event.inputs.version_spec }}
40+ silent : ${{ github.event.inputs.silent }}
3841 post_version_spec : ${{ github.event.inputs.post_version_spec }}
3942 branch : ${{ github.event.inputs.branch }}
40- # silent: ${{ github.event.inputs.silent }}
4143 since : ${{ github.event.inputs.since }}
4244 since_last_stable : ${{ github.event.inputs.since_last_stable }}
4345
Original file line number Diff line number Diff line change 1212jobs :
1313 publish_changelog :
1414 runs-on : ubuntu-latest
15+ environment : release
1516 steps :
1617 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
18+
19+ - uses : actions/create-github-app-token@v1
20+ id : app-token
21+ with :
22+ app-id : ${{ vars.APP_ID }}
23+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
24+
1725 - name : Publish changelog
1826 id : publish-changelog
1927 uses : jupyter-server/jupyter_releaser/.github/actions/publish-changelog@v2
2028 with :
21- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
29+ token : ${{ steps.app-token.outputs.token }}
2230 branch : ${{ github.event.inputs.branch }}
2331
2432 - name : " ** Next Step **"
Original file line number Diff line number Diff line change 1515jobs :
1616 publish_release :
1717 runs-on : ubuntu-latest
18+ environment : release
1819 permissions :
19- # This is useful if you want to use PyPI trusted publisher
20- # and NPM provenance
2120 id-token : write
2221 steps :
2322 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2423
24+ - uses : actions/create-github-app-token@v1
25+ id : app-token
26+ with :
27+ app-id : ${{ vars.APP_ID }}
28+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
29+
2530 - name : Populate Release
2631 id : populate-release
2732 uses : jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2833 with :
29- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
34+ token : ${{ steps.app-token.outputs.token }}
3035 branch : ${{ github.event.inputs.branch }}
3136 release_url : ${{ github.event.inputs.release_url }}
3237 steps_to_skip : ${{ github.event.inputs.steps_to_skip }}
3742 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
3843 uses : jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
3944 with :
40- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
45+ token : ${{ steps.app-token.outputs.token }}
4146 release_url : ${{ steps.populate-release.outputs.release_url }}
4247
4348 - name : " ** Next Step **"
You can’t perform that action at this time.
0 commit comments