Skip to content

Commit 1eaf35e

Browse files
authoredApr 7, 2020
fix: install semantic-release as a regular dev dependency (#3455)
Also changed global executable to NPM script as global executable will not be available unless the package is installed globally (with `npm i -g`).
1 parent 0647109 commit 1eaf35e

File tree

3 files changed

+10759
-5137
lines changed

3 files changed

+10759
-5137
lines changed
 

‎.travis.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,5 @@ after_success:
4949
# run automated release process with semantic-release
5050
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, TRAVIS_EVENT_TYPE=$TRAVIS_EVENT_TYPE, TRAVIS_NODE_VERSION=$TRAVIS_NODE_VERSION"
5151
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" && "$TRAVIS_NODE_VERSION" == "12" ]]; then
52-
npm i --no-save semantic-release@15 @semantic-release/changelog@3 @semantic-release/git@7;
53-
semantic-release;
54-
fi;
52+
npm run semantic-release;
53+
fi;

‎package-lock.json

+10,752-5,133
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@
418418
"devDependencies": {
419419
"@commitlint/cli": "^8.3.4",
420420
"@commitlint/config-conventional": "^8.3.4",
421+
"@semantic-release/changelog": "^3.0.6",
422+
"@semantic-release/git": "^7.0.18",
421423
"browserify": "^16.2.3",
422424
"chai": "^4.2.0",
423425
"chai-as-promised": "^7.1.1",
@@ -461,6 +463,7 @@
461463
"mocks": "^0.0.15",
462464
"proxyquire": "^2.1.0",
463465
"puppeteer": "^1.9.0",
466+
"semantic-release": "^15.14.0",
464467
"sinon": "^7.3.2",
465468
"sinon-chai": "^3.0.0",
466469
"supertest": "^4.0.2",
@@ -496,6 +499,7 @@
496499
"init": "rm -rf node_modules/karma && cd node_modules && ln -nsf ../ karma && cd ../",
497500
"init:windows": "(IF EXIST node_modules\\karma (rmdir node_modules\\karma /S /q)) && npm run link",
498501
"appveyor": "npm run build && npm run test:appveyor",
499-
"travis": "npm run build && npm test && npm run test:integration"
502+
"travis": "npm run build && npm test && npm run test:integration",
503+
"semantic-release": "semantic-release"
500504
}
501505
}

0 commit comments

Comments
 (0)
Please sign in to comment.