Skip to content

Commit 0f360a9

Browse files
committed
Workflows: Persist git credentials when publishing packages via Lerna
1 parent 1f9744c commit 0f360a9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build-plugin-zip.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name: Compute current and next stable release branches
3030
runs-on: ubuntu-latest
3131
permissions:
32-
contents: read
32+
contents: read
3333
if: ${{ github.event_name == 'workflow_dispatch' }}
3434
outputs:
3535
current_stable_branch: ${{ steps.get_branches.outputs.current_stable_branch }}
@@ -57,7 +57,7 @@ jobs:
5757
name: Bump version
5858
runs-on: ubuntu-latest
5959
permissions:
60-
contents: write
60+
contents: write
6161
needs: compute-stable-branches
6262
if: |
6363
github.event_name == 'workflow_dispatch' && (
@@ -132,7 +132,7 @@ jobs:
132132
github.event.inputs.version == 'stable' ||
133133
contains( steps.get_version.outputs.old_version, 'rc' )
134134
env:
135-
TARGET_BRANCH: ${{ steps.get_version.outputs.release_branch }}
135+
TARGET_BRANCH: ${{ steps.get_version.outputs.release_branch }}
136136
run: |
137137
git fetch --depth=1 origin "$TARGET_BRANCH"
138138
git checkout "$TARGET_BRANCH"
@@ -182,7 +182,7 @@ jobs:
182182
name: Build Release Artifact
183183
runs-on: ubuntu-latest
184184
permissions:
185-
contents: read
185+
contents: read
186186
needs: bump-version
187187
if: |
188188
always() && (
@@ -246,7 +246,7 @@ jobs:
246246
needs: [bump-version, build]
247247
runs-on: ubuntu-latest
248248
permissions:
249-
contents: write
249+
contents: write
250250
if: |
251251
always() &&
252252
( needs.build.outputs.job_status == 'failure' ) &&
@@ -302,7 +302,7 @@ jobs:
302302
needs: [bump-version, build]
303303
runs-on: ubuntu-latest
304304
permissions:
305-
contents: write
305+
contents: write
306306

307307
steps:
308308
- name: Set Release Version
@@ -349,7 +349,7 @@ jobs:
349349
name: Publish WordPress packages to npm
350350
runs-on: ubuntu-latest
351351
permissions:
352-
contents: read
352+
contents: read
353353
environment: WordPress packages
354354
needs: [bump-version, build]
355355
if: ${{ endsWith( needs.bump-version.outputs.new_version, '-rc.1' ) }}
@@ -370,7 +370,7 @@ jobs:
370370
ref: trunk
371371
token: ${{ secrets.GUTENBERG_TOKEN }}
372372
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
373-
persist-credentials: false
373+
persist-credentials: true
374374

375375
- name: Configure git user name and email (for publishing)
376376
run: |

0 commit comments

Comments
 (0)