Skip to content

Commit c46c38c

Browse files
chgeoKoblerS
andauthored
chore: prepare for trusted publishing + provenance (#301)
Allows token-less publishing. See https://docs.npmjs.com/trusted-publishers Enables provenance statements, see https://docs.npmjs.com/generating-provenance-statements --------- Co-authored-by: Simon Kobler <simon.kobler@sap.com>
1 parent 41ad47e commit c46c38c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
permissions:
77
contents: write
8+
id-token: write
89

910
jobs:
1011

@@ -15,7 +16,7 @@ jobs:
1516
- uses: actions/checkout@v4
1617
- uses: actions/setup-node@v4
1718
with:
18-
node-version: 20
19+
node-version: 24
1920
registry-url: https://registry.npmjs.org/
2021

2122
- name: Run Tests
@@ -39,6 +40,4 @@ jobs:
3940
with:
4041
tag: 'v${{ steps.package-version.outputs.current-version }}'
4142
body: '${{ steps.parse-changelog.outputs.body }}'
42-
- run: npm publish --access public
43-
env:
44-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
43+
- run: npm publish --access public --provenance

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
- run: npm i
3838
- run: cd tests/incidents-app && npm i
3939
- run: npm run test
40+
4041
integration-tests:
4142
runs-on: ubuntu-latest
4243
needs: requires-approval

0 commit comments

Comments
 (0)