Skip to content

Commit eadd71b

Browse files
committed
ci(release-please): Enable trusted publishing
Using trusted publishing via OIDC for npm publishing. This makes the use of npm tokens obsolete and improves security. See: https://docs.npmjs.com/trusted-publishers JIRA: CPOUI5FOUNDATION-1127
1 parent d0dd2de commit eadd71b

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/release-please.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: ${{needs.pull-request.outputs.releases_created && toJson(fromJson(needs.pull-request.outputs.paths_released)) != '[]'}}
2626
runs-on: ubuntu-24.04
2727
permissions:
28-
id-token: write
28+
id-token: write # Required for trusted publishing via OIDC (https://docs.npmjs.com/trusted-publishers)
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v5
@@ -52,9 +52,5 @@ jobs:
5252
run: |
5353
rm package.json
5454
mv package.json.bak package.json
55-
- name: Publish to NPM
56-
env:
57-
NPM_TOKEN: ${{secrets.NPM_UI5BOT}}
58-
run: |
59-
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> ./.npmrc
60-
npm publish --provenance --access public
55+
- name: Publish to npm
56+
run: npm publish --access public

0 commit comments

Comments
 (0)