Skip to content

Commit

Permalink
feat: Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
beizhedenglong committed Aug 10, 2019
1 parent 95da9d1 commit b651038
Show file tree
Hide file tree
Showing 5 changed files with 1,760 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "plugin:zero/base"
}
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: node_js

node_js:
- node

# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^greenkeeper.*$/

install:
# Retry install on fail to avoid failing a build on network/disk/external errors
- yarn

script:
- yarn test

jobs:
include:
- stage: release
script:
- yarn semantic-release
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/github',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', {
changelogFile: 'CHANGELOG.md',
}],
'@semantic-release/npm',
['@semantic-release/git', {
assets: ['package.json', 'CHANGELOG.md'],
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', // eslint-disable-line
}],
],
}
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "semantic-release-zero",
"version": "0.0.0-development",
"main": "index.js",
"repository": "https://github.com/zero-config/semantic-release-zero.git",
"author": "Victor Wang <[email protected]>",
"license": "MIT",
"scripts": {
"test": "eslint ./index.js",
"semantic-release": "semantic-release"
},
"devDependencies": {
"eslint": "^6.1.0",
"eslint-plugin-zero": "^0.0.9",
"semantic-release": "^15.13.19"
},
"peerDependencies": {
"semantic-release": "^15.13.19"
},
"dependencies": {
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/git": "^7.0.16"
}
}
Loading

0 comments on commit b651038

Please sign in to comment.