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

Commit 5c06a7b

Browse files
authored
Merge pull request #31 from dominykas/npm-otp-env
Build: set NPM_CONFIG_OTP directly before npx semantic-release
2 parents 894f714 + c29364b commit 5c06a7b

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

.releaserc.js

+1-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,7 @@
11
'use strict';
22

3-
const path = require('path');
4-
5-
const npmrcPath = process.env.NPM_CONFIG_USERCONFIG || path.resolve(process.cwd(), '.npmrc');
6-
73
module.exports = {
84
npmPublish: true,
95
tarballDir: '.',
10-
assets: 'allow-scripts-*.tgz',
11-
plugins: [
12-
'@semantic-release/commit-analyzer',
13-
'@semantic-release/release-notes-generator',
14-
'@semantic-release/npm',
15-
[
16-
'@semantic-release/exec',
17-
{
18-
prepareCmd: `echo -e "\notp=$(curl -s $NPM_OTP_URL)" >>${npmrcPath}`
19-
}
20-
],
21-
'@semantic-release/github'
22-
]
6+
assets: 'allow-scripts-*.tgz'
237
};

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
provider: "script"
2323
skip_cleanup: true
2424
script:
25-
- "npx semantic-release"
25+
- "NPM_CONFIG_OTP=$(curl -s $NPM_OTP_URL) npx semantic-release"

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
"@commitlint/config-conventional": "8.x.x",
2626
"@hapi/code": "6.x.x",
2727
"@hapi/lab": "20.x.x",
28-
"@semantic-release/exec": "3.x.x",
2928
"mkdirp": "0.5.x",
3029
"rimraf": "3.x.x",
3130
"semantic-release": "15.x.x",

0 commit comments

Comments
 (0)