29
29
name : Compute current and next stable release branches
30
30
runs-on : ubuntu-latest
31
31
permissions :
32
- contents : read
32
+ contents : read
33
33
if : ${{ github.event_name == 'workflow_dispatch' }}
34
34
outputs :
35
35
current_stable_branch : ${{ steps.get_branches.outputs.current_stable_branch }}
57
57
name : Bump version
58
58
runs-on : ubuntu-latest
59
59
permissions :
60
- contents : write
60
+ contents : write
61
61
needs : compute-stable-branches
62
62
if : |
63
63
github.event_name == 'workflow_dispatch' && (
@@ -132,7 +132,7 @@ jobs:
132
132
github.event.inputs.version == 'stable' ||
133
133
contains( steps.get_version.outputs.old_version, 'rc' )
134
134
env :
135
- TARGET_BRANCH : ${{ steps.get_version.outputs.release_branch }}
135
+ TARGET_BRANCH : ${{ steps.get_version.outputs.release_branch }}
136
136
run : |
137
137
git fetch --depth=1 origin "$TARGET_BRANCH"
138
138
git checkout "$TARGET_BRANCH"
@@ -182,7 +182,7 @@ jobs:
182
182
name : Build Release Artifact
183
183
runs-on : ubuntu-latest
184
184
permissions :
185
- contents : read
185
+ contents : read
186
186
needs : bump-version
187
187
if : |
188
188
always() && (
@@ -246,7 +246,7 @@ jobs:
246
246
needs : [bump-version, build]
247
247
runs-on : ubuntu-latest
248
248
permissions :
249
- contents : write
249
+ contents : write
250
250
if : |
251
251
always() &&
252
252
( needs.build.outputs.job_status == 'failure' ) &&
@@ -302,7 +302,7 @@ jobs:
302
302
needs : [bump-version, build]
303
303
runs-on : ubuntu-latest
304
304
permissions :
305
- contents : write
305
+ contents : write
306
306
307
307
steps :
308
308
- name : Set Release Version
@@ -349,7 +349,7 @@ jobs:
349
349
name : Publish WordPress packages to npm
350
350
runs-on : ubuntu-latest
351
351
permissions :
352
- contents : read
352
+ contents : read
353
353
environment : WordPress packages
354
354
needs : [bump-version, build]
355
355
if : ${{ endsWith( needs.bump-version.outputs.new_version, '-rc.1' ) }}
@@ -370,7 +370,7 @@ jobs:
370
370
ref : trunk
371
371
token : ${{ secrets.GUTENBERG_TOKEN }}
372
372
show-progress : ${{ runner.debug == '1' && 'true' || 'false' }}
373
- persist-credentials : false
373
+ persist-credentials : true
374
374
375
375
- name : Configure git user name and email (for publishing)
376
376
run : |
0 commit comments