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

Commit 60f098a

Browse files
authored
Merge pull request #29 from dominykas/npm-otp-env
Build: add a new line in .npmrc
2 parents fad33c6 + cc94cc7 commit 60f098a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.releaserc.js

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
'use strict';
2+
3+
const path = require('path');
4+
5+
const npmrcPath = process.env.NPM_CONFIG_USERCONFIG || path.resolve(process.cwd, '.npmrc');
6+
17
module.exports = {
28
npmPublish: true,
39
tarballDir: '.',
@@ -6,6 +12,12 @@ module.exports = {
612
'@semantic-release/commit-analyzer',
713
'@semantic-release/release-notes-generator',
814
'@semantic-release/npm',
15+
[
16+
'@semantic-release/exec',
17+
{
18+
prepareCmd: `echo -e "\notp=$(curl -s $NPM_OTP_URL)" >>${npmrcPath}`
19+
}
20+
],
921
'@semantic-release/github'
1022
]
1123
};

0 commit comments

Comments
 (0)