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

Commit

Permalink
Publish from travis by using a remote 2FA request (#21)
Browse files Browse the repository at this point in the history
Publish from travis by using a remote 2FA request
  • Loading branch information
dominykas authored Jun 28, 2019
2 parents 53178f7 + 6579e35 commit 7364187
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
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

0 comments on commit 7364187

Please sign in to comment.