Skip to content

Commit f2ecbc1

Browse files
authored
chore: Use default token for release notes. (#121)
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
1 parent 46a3b8b commit f2ecbc1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
run-tests: ${{ inputs.skip-tests == false }}
4444

4545
release-npm:
46+
permissions:
47+
contents: write
48+
id-token: write
4649
needs: build-and-test
4750
runs-on: ubuntu-latest
4851
environment: npm
@@ -77,5 +80,7 @@ jobs:
7780
GITHUB_TOKEN: ${{ github.token }}
7881
run: npm publish --access public --tag ${{ inputs.prerelease == true && 'next' || 'latest' }} ${{ inputs.skip-optional-publish == true && '--ignore-scripts' || '' }}
7982
- name: 'Create release notes'
83+
env:
84+
GITHUB_TOKEN: ${{ github.token }}
8085
run: |
81-
npx @matteo.collina/release-notes -a ${{ secrets.GITHUB_TOKEN }} -t v${{ inputs.version }} -r python-node -o platformatic ${{ inputs.prerelease == true && '-p' || '' }} -c ${{ github.ref }}
86+
npx @matteo.collina/release-notes -t v${{ inputs.version }} -r python-node -o platformatic ${{ inputs.prerelease == true && '-p' || '' }} -c ${{ github.ref }}

0 commit comments

Comments
 (0)