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

Commit 7d8697f

Browse files
authored
Merge pull request #27 from dominykas/npm-otp-env
Build: attempt to find a correct .npmrc
2 parents 13cbc40 + a211257 commit 7d8697f

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)