File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
3
- node_js :
4
- - 8
3
+ stages :
4
+ - lint
5
+ - test
6
+ - release
5
7
6
- install :
7
- - npm install
8
-
9
- cache :
10
- directories :
11
- - " node_modules"
8
+ notifications :
9
+ email : false
12
10
13
11
jobs :
14
12
include :
15
- # Define the release stage that runs semantic-release
13
+ - stage : lint
14
+ node_js : 10.0.0
15
+ script :
16
+ - npm run lint
17
+
18
+ - stage : test
19
+ node_js : 10.0.0
20
+ script :
21
+ - npm run test
22
+
16
23
- stage : release
17
- node_js : lts/*
18
- # Advanced: optionally overwrite your default `script` step to skip the tests
19
- # script: skip
20
- deploy :
21
- provider : script
22
- skip_cleanup : true
23
- script :
24
- - npm run semantic-release
24
+ node_js : 10.0.0
25
+ script :
26
+ - npm run semantic-release
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.0-semantically-released" ,
4
4
"description" : " Restful API query builder" ,
5
5
"main" : " index.js" ,
6
+ "engines" : {
7
+ "node" : " >8.9.0"
8
+ },
6
9
"scripts" : {
7
10
"commit" : " git-cz" ,
11
+ "lint" : " eslint **/*.js --ignore-path .gitignore" ,
12
+ "lint:fix" : " eslint **/*.js --fix" ,
8
13
"test" : " mocha index.test.js" ,
9
14
"test:watch" : " mocha index.test.js -w" ,
10
15
"semantic-release" : " semantic-release"
You can’t perform that action at this time.
0 commit comments