Skip to content

Commit fb0bbbf

Browse files
🐛 Fix trusted publishing npm CLI
Ensure semantic-release child npm publish uses npm 11 so OIDC publishing completes.
1 parent 6170f0a commit fb0bbbf

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.github/licensed.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ reviewed:
2525
- sprintf-js
2626
- string_decoder
2727
- argparse
28+
- safe-buffer
29+
- tr46
30+
- webidl-conversions
31+
- whatwg-url

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,9 @@ jobs:
5252
GIT_COMMITTER_NAME: "Koj Bot"
5353
GIT_COMMITTER_EMAIL: "bot@koj.co"
5454
run: |
55-
npx npm@latest --version
56-
npx npm@latest exec -- semantic-release
55+
NPM_EXE=$(npx npm@latest exec -- node -p "process.env.npm_execpath")
56+
NPM_PACKAGE_DIR=$(dirname "$(dirname "$NPM_EXE")")
57+
NPM_BIN_DIR=$(dirname "$NPM_PACKAGE_DIR")/.bin
58+
export PATH="$NPM_BIN_DIR:$PATH"
59+
npm --version
60+
./node_modules/.bin/semantic-release

0 commit comments

Comments
 (0)