diff --git a/lib/content/release-please.yml b/lib/content/release-please.yml index 79f87b78..9d4e350c 100644 --- a/lib/content/release-please.yml +++ b/lib/content/release-please.yml @@ -11,7 +11,7 @@ on: - {{.}} {{/each}} -{{~#if isWorkspace}} +{{#if isWorkspace}} permissions: contents: write {{/if}} @@ -37,7 +37,7 @@ jobs: {{{json .}}}{{#unless @last}},{{/unless}} {{/each}} ] - {{~#if isWorkspace}} + {{#if isWorkspace}} {{> setupGit}} {{> setupNode}} - name: Update package-lock.json and commit diff --git a/tap-snapshots/test/apply/full-content.js.test.cjs b/tap-snapshots/test/apply/full-content.js.test.cjs index 6dfadd9b..587ddeb3 100644 --- a/tap-snapshots/test/apply/full-content.js.test.cjs +++ b/tap-snapshots/test/apply/full-content.js.test.cjs @@ -1056,6 +1056,7 @@ on: branches: - main - latest + permissions: contents: write @@ -1079,7 +1080,8 @@ jobs: {"type":"docs","section":"Documentation","hidden":false}, {"type":"deps","section":"Dependencies","hidden":false}, {"type":"chore","hidden":true} - ] - uses: actions/checkout@v3 + ] + - uses: actions/checkout@v3 - name: Setup git user run: | git config --global user.email "ops+npm-cli@npmjs.com" @@ -1116,6 +1118,7 @@ on: branches: - main - latest + permissions: contents: write @@ -1139,7 +1142,8 @@ jobs: {"type":"docs","section":"Documentation","hidden":false}, {"type":"deps","section":"Dependencies","hidden":false}, {"type":"chore","hidden":true} - ] - uses: actions/checkout@v3 + ] + - uses: actions/checkout@v3 - name: Setup git user run: | git config --global user.email "ops+npm-cli@npmjs.com"