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

Publish from travis by using a remote 2FA request #21

Merged
merged 7 commits into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "./node_modules/lab/lib/linter/.eslintrc.js"
"extends": "@hapi/hapi"
}
6 changes: 6 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
npmPublish: true,
tarballDir: '.',
assets: 'allow-scripts-*.tgz',
otpUrl: process.env.NPM_OTP_URL
};
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ sudo: false
node_js:
- "8"
- "10"
- "12"
- "node"

install:
Expand All @@ -12,6 +13,7 @@ install:
jobs:
include:
- stage: release
if: branch = master AND type = push
node_js: "10"
deploy:
provider: "script"
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@
"semver": "6.x.x"
},
"devDependencies": {
"@commitlint/cli": "7.x.x",
"@commitlint/config-conventional": "7.x.x",
"code": "5.x.x",
"lab": "18.x.x",
"@commitlint/cli": "8.x.x",
"@commitlint/config-conventional": "8.x.x",
"@hapi/code": "^5.3.1",
"@hapi/lab": "^19.1.0",
"@semantic-release/npm": "git+https://github.com/dominykas/semantic-release-npm.git#otp-url-with-version",
"mkdirp": "0.5.x",
"rimraf": "2.x.x",
"semantic-release": "15.x.x",
"sinon": "7.x.x"
},
"files": [
Expand All @@ -38,9 +40,7 @@
"@commitlint/config-conventional"
]
},
"release": {
"npmPublish": false,
"tarballDir": ".",
"assets": "allow-scripts-*.tgz"
"allowScripts": {
"core-js": false
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const Path = require('path');
const Allow = require('..');


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

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

Expand Down