Skip to content

Commit bd5567e

Browse files
committed
[release:patch] 2.15.7 Use trusted publishing
1 parent 76069dd commit bd5567e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ jobs:
113113
runs-on: ubuntu-latest
114114
timeout-minutes: 75
115115
needs: ['test-full']
116+
permissions:
117+
contents: read
118+
id-token: write
116119
concurrency:
117120
group: release-main
118121
cancel-in-progress: false
@@ -202,12 +205,13 @@ jobs:
202205
# we use publish-library because flowr itself is a runnable, and we do not want to publish something with extra
203206
# dist paths etc.
204207
# besides, we make dead-sure we have a clean directory to work on!
208+
# uses npm trusted publishing (OIDC): no token, package.json's Trusted Publisher config on npmjs.com must
209+
# match this repo/workflow/environment, and npm needs to be new enough to speak OIDC.
205210
run: |
211+
npm install -g npm@latest
206212
rm -rf dist
207213
npm run build
208214
npm run publish-library
209-
env:
210-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
211215
outputs:
212216
version: ${{ steps.release.outputs.version }}
213217

index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)