File tree 2 files changed +13
-9
lines changed
2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 22
22
jobs :
23
23
prep_release :
24
24
runs-on : ubuntu-latest
25
+ permissions :
26
+ contents : write
25
27
steps :
26
28
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
27
29
28
30
- name : Prep Release
29
31
id : prep-release
30
32
uses : jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
31
33
with :
32
- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
34
+ token : ${{ secrets.GITHUB_TOKEN }}
33
35
version_spec : ${{ github.event.inputs.version_spec }}
34
36
post_version_spec : ${{ github.event.inputs.post_version_spec }}
37
+ target : ${{ github.event.inputs.target }}
35
38
branch : ${{ github.event.inputs.branch }}
36
39
since : ${{ github.event.inputs.since }}
37
40
since_last_stable : ${{ github.event.inputs.since_last_stable }}
Original file line number Diff line number Diff line change 15
15
jobs :
16
16
publish_release :
17
17
runs-on : ubuntu-latest
18
+ environment : release
18
19
permissions :
19
- # This is useful if you want to use PyPI trusted publisher
20
- # and NPM provenance
21
20
id-token : write
22
21
steps :
23
22
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
24
23
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
+
25
30
- name : Populate Release
26
31
id : populate-release
27
32
uses : jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
28
33
with :
29
- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
34
+ token : ${{ steps.app-token.outputs.token }}
30
35
branch : ${{ github.event.inputs.branch }}
31
36
release_url : ${{ github.event.inputs.release_url }}
32
37
steps_to_skip : ${{ github.event.inputs.steps_to_skip }}
33
38
34
39
- name : Finalize Release
35
40
id : finalize-release
36
41
env :
37
- # The following are needed if you use legacy PyPI set up
38
- # PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
39
- # PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
40
- # TWINE_USERNAME: __token__
41
42
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
43
uses : jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
43
44
with :
44
- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
45
+ token : ${{ steps.app-token.outputs.token }}
45
46
release_url : ${{ steps.populate-release.outputs.release_url }}
46
47
47
48
- name : " ** Next Step **"
You can’t perform that action at this time.
0 commit comments