Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit 0c94a69

Browse files
committed
chore: adding semantic-release
1 parent 9a56e49 commit 0c94a69

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '4'
10+
- '5'
11+
- '6'
12+
before_install:
13+
- npm i -g npm@^2.0.0
14+
before_script:
15+
- npm prune
16+
after_success:
17+
- npm run semantic-release
18+
branches:
19+
except:
20+
- /^v\d+\.\d+\.\d+$/

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "serverless-snyk",
3-
"version": "0.1.0",
43
"description": "Serverless plugin for securing your dependencies with Snyk",
54
"main": "index.js",
65
"repository": {
76
"type": "git",
8-
"url": "git+https://github.com/Snyk/serverless-snyk.git"
7+
"url": "https://github.com/Snyk/serverless-snyk.git"
98
},
109
"scripts": {
1110
"lint": "jscs index.js",
12-
"test": "snyk test"
11+
"test": "snyk test",
12+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1313
},
1414
"keywords": [
1515
"security",
@@ -22,12 +22,13 @@
2222
},
2323
"homepage": "https://github.com/Snyk/serverless-snyk#readme",
2424
"devDependencies": {
25-
"jscs": "^3.0.7"
25+
"jscs": "^3.0.7",
26+
"semantic-release": "^4.3.5"
2627
},
2728
"dependencies": {
2829
"bluebird": "^3.4.6",
2930
"chalk": "^1.1.3",
3031
"dotenv": "^2.0.0",
3132
"snyk": "^1.19.1"
3233
}
33-
}
34+
}

0 commit comments

Comments
 (0)