Skip to content

Commit e4482f6

Browse files
authored
chore: use semantic-release workflow (#23)
https://github.com/semantic-release/semantic-release
1 parent b224dd1 commit e4482f6

6 files changed

Lines changed: 25 additions & 36 deletions

File tree

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
sudo: false
22
language: node_js
3+
notifications:
4+
email: false
35
node_js:
4-
- "2"
5-
- "3"
6-
- "4"
7-
- "6"
8-
- "7"
9-
- "8"
6+
- '8'
7+
- '6'
8+
- '4'
9+
install:
10+
- npm i npminstall && npminstall
1011
script:
11-
- "npm run test-cov"
12+
- npm run ci
1213
after_script:
13-
- "npm i codecov.io && cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js"
14+
- npminstall codecov && codecov
15+
after_success:
16+
- npm run semantic-release
17+
branches:
18+
except:
19+
- /^v\d+\.\d+\.\d+$/

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This software is licensed under the MIT License.
22

3-
Copyright(c) 2013 - 2015 by node-modules and other contributors.
3+
Copyright(c) 2013 - 2017 node-modules and other contributors.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ parameter
55
[![build status][travis-image]][travis-url]
66
[![Test coverage][codecov-image]][codecov-url]
77
[![npm download][download-image]][download-url]
8+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
89

910
[npm-image]: https://img.shields.io/npm/v/parameter.svg?style=flat-square
1011
[npm-url]: https://npmjs.org/package/parameter

benchmark.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
/**!
2-
* Copyright(c) node-modules and other contributors.
3-
* MIT Licensed
4-
*
5-
* Authors:
6-
* fengmk2 <fengmk2@gmail.com> (http://fengmk2.com)
7-
*/
8-
91
'use strict';
102

11-
/**
12-
* Module dependencies.
13-
*/
14-
153
var Benchmark = require('benchmark');
164
var benchmarks = require('beautify-benchmark');
175
var Parameter = require('./');

index.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
/**
2-
* Copyright(c) node-modules and other contributors.
3-
* MIT Licensed
4-
*
5-
* Authors:
6-
* fengmk2 <fengmk2@gmail.com>
7-
* dead_horse <dead_horse@qq.com>
8-
*/
9-
101
'use strict';
112

123
var util = require('util');

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
{
22
"name": "parameter",
3-
"version": "2.1.0",
3+
"version": "0.0.0-development",
44
"description": "A parameter verify tools.",
55
"main": "index.js",
66
"files": [
77
"index.js"
88
],
99
"scripts": {
10-
"test": "mocha --check-leaks -R spec -t 1000 test/*.test.js",
11-
"test-cov": "istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 1000 test/*.test.js"
10+
"test": "mocha -R spec -t 1000 test/*.test.js",
11+
"cov": "istanbul cover _mocha -- -t 1000 test/*.test.js",
12+
"ci": "npm run cov",
13+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1214
},
1315
"dependencies": {},
1416
"devDependencies": {
1517
"beautify-benchmark": "0",
1618
"benchmark": "*",
1719
"istanbul": "*",
1820
"mocha": "*",
19-
"should": "*"
21+
"should": "*",
22+
"semantic-release": "^6.3.6"
2023
},
2124
"repository": {
2225
"type": "git",
23-
"url": "git://github.com/node-modules/parameter.git"
26+
"url": "https://github.com/node-modules/parameter.git"
2427
},
2528
"keywords": [
2629
"parameter",
2730
"verify",
2831
"univ"
2932
],
3033
"engines": {
31-
"node": ">= 2.0.0"
34+
"node": ">= 4.0.0"
3235
},
3336
"author": "fengmk2 <fengmk2@gmail.com>",
3437
"license": "MIT"

0 commit comments

Comments
 (0)