Skip to content

Commit 5d5670e

Browse files
committed
Fix pushing contents back to the repo during release
1 parent 3f0ac37 commit 5d5670e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
required: true
99

1010
permissions:
11+
contents: write
1112
id-token: write
1213

1314
jobs:
@@ -16,11 +17,11 @@ jobs:
1617
steps:
1718
# Checkout project repository
1819
- name: Checkout
19-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2021

2122
# Setup Node.js environment
2223
- name: Setup Node.js
23-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2425
with:
2526
node-version: '24'
2627
registry-url: https://registry.npmjs.org/
@@ -80,8 +81,6 @@ jobs:
8081

8182
# Push repository changes
8283
- name: Push changes to repository
83-
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8584
run: |
8685
git push origin && git push --tags
8786
@@ -101,5 +100,3 @@ jobs:
101100
tag_name: ${{ env.NEW_VERSION }}
102101
body: ${{ steps.get-changelog.outputs.changelog }}
103102
prerelease: ${{ startsWith(github.event.inputs.release-type, 'pre') }}
104-
env:
105-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)