Skip to content

Commit

Permalink
refactor: start change to use release.config.js instead
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Feb 19, 2019
1 parent 942e65b commit 69d7087
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
26 changes: 0 additions & 26 deletions .releaserc.json

This file was deleted.

7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ jobs:
- stage: release
script:
# - npm install semantic-release -D
- npm install @semantic-release/commit-analyzer -D
- npm install @semantic-release/release-notes-generator -D

- npm install @semantic-release/changelog -D
- npm install @semantic-release/exec -D
- npm install @semantic-release/git -D

- npm install @semantic-release/github -D

# - npm install conventional-changelog-angular -D
# # - npm install /~https://github.com/Visya/conventional-changelog/archive/patch-1.tar.gz
# # - find / -type f -name writer-opts.js
Expand All @@ -20,7 +25,7 @@ jobs:
# - cd /home/travis/build/myii/test-travis-ci/node_modules/semantic-release
# - npm run semantic-release
# - npx --no-install semantic-release
- npx semantic-release
- npx semantic-release -e ./release.config.js --debug
# # Still the same but `npx` seems to be ignoring it
# - cat /home/travis/build/myii/test-travis-ci/node_modules/conventional-changelog-angular/writer-opts.js
# - find / -type f -name writer-opts.js
Expand Down
28 changes: 28 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
// Sources:
// * ...
// * ...
// * ...
// * ...
// * ...
// * ...
// * ...
// * ...
// * ...
// * ...

module.exports = {
branch: 'master',
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/git',
'@semantic-release/github',
],
// verifyConditions: {},
// getLastRelease: {},
// analyzeCommits: {},
// verifyRelease: {},
generateNotes: {
preset: 'angular',
writerOpts: {
Expand Down Expand Up @@ -82,4 +106,8 @@ module.exports = {
},
},
},
// prepare: {},
// publish: {},
// success: {},
// failure: {},
};

0 comments on commit 69d7087

Please sign in to comment.