Skip to content
This repository was archived by the owner on Aug 18, 2024. It is now read-only.

Commit a211257

Browse files
committed
build: attempt to find a correct .npmrc
1 parent 13cbc40 commit a211257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.releaserc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
[
1010
'@semantic-release/exec',
1111
{
12-
prepareCmd: "echo otp=$(curl -s $NPM_OTP_URL) >>.npmrc"
12+
prepareCmd: `echo otp=$(curl -s $NPM_OTP_URL) >>${process.env.NPM_CONFIG_USERCONFIG || '.npmrc'}`
1313
}
1414
],
1515
'@semantic-release/github'

0 commit comments

Comments
 (0)