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

Commit 7364187

Browse files
authored
Publish from travis by using a remote 2FA request (#21)
Publish from travis by using a remote 2FA request
2 parents 53178f7 + 6579e35 commit 7364187

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "./node_modules/lab/lib/linter/.eslintrc.js"
2+
"extends": "@hapi/hapi"
33
}

.releaserc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
npmPublish: true,
3+
tarballDir: '.',
4+
assets: 'allow-scripts-*.tgz',
5+
otpUrl: process.env.NPM_OTP_URL
6+
};

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sudo: false
33
node_js:
44
- "8"
55
- "10"
6+
- "12"
67
- "node"
78

89
install:
@@ -12,6 +13,7 @@ install:
1213
jobs:
1314
include:
1415
- stage: release
16+
if: branch = master AND type = push
1517
node_js: "10"
1618
deploy:
1719
provider: "script"

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
"semver": "6.x.x"
2222
},
2323
"devDependencies": {
24-
"@commitlint/cli": "7.x.x",
25-
"@commitlint/config-conventional": "7.x.x",
26-
"code": "5.x.x",
27-
"lab": "18.x.x",
24+
"@commitlint/cli": "8.x.x",
25+
"@commitlint/config-conventional": "8.x.x",
26+
"@hapi/code": "^5.3.1",
27+
"@hapi/lab": "^19.1.0",
28+
"@semantic-release/npm": "git+https://github.com/dominykas/semantic-release-npm.git#otp-url-with-version",
2829
"mkdirp": "0.5.x",
2930
"rimraf": "2.x.x",
31+
"semantic-release": "15.x.x",
3032
"sinon": "7.x.x"
3133
},
3234
"files": [
@@ -38,9 +40,7 @@
3840
"@commitlint/config-conventional"
3941
]
4042
},
41-
"release": {
42-
"npmPublish": false,
43-
"tarballDir": ".",
44-
"assets": "allow-scripts-*.tgz"
43+
"allowScripts": {
44+
"core-js": false
4545
}
4646
}

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const Path = require('path');
88
const Allow = require('..');
99

1010

11-
const { describe, it, beforeEach, afterEach } = exports.lab = require('lab').script();
12-
const { expect } = require('code');
11+
const { describe, it, beforeEach, afterEach } = exports.lab = require('@hapi/lab').script();
12+
const { expect } = require('@hapi/code');
1313

1414
describe('allow-scripts', () => {
1515

0 commit comments

Comments
 (0)