Skip to content

Commit dbb77ab

Browse files
committed
feat: Use semantic-release to publish
1 parent 55696fe commit dbb77ab

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"pretest": "eslint .",
8-
"test": "jenkins-mocha --recursive"
8+
"test": "jenkins-mocha --recursive",
9+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
910
},
1011
"repository": {
1112
"type": "git",
@@ -28,6 +29,12 @@
2829
"St. John Johnson <st.john.johnson@gmail.com",
2930
"Tiffany Kyi <tiffanykyi@gmail.com>"
3031
],
32+
"release": {
33+
"debug": false,
34+
"verifyConditions": {
35+
"path": "./node_modules/semantic-release/src/lib/plugin-noop.js"
36+
}
37+
},
3138
"devDependencies": {
3239
"chai": "^3.5.0",
3340
"eslint": "^3.2.2",

screwdriver.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ jobs:
1212

1313
publish:
1414
steps:
15-
- setup-ci: git clone https://gist.github.com/3d2388b2a7ba658cdcdaffa8cd874e50.git ci
16-
- install-ci: npm install npm-auto-version
17-
- publish-npm: ./ci/publish.sh
15+
- install: npm install semantic-release
16+
- publish: npm run semantic-release
1817
secrets:
19-
# Publishing to NPM
18+
- GH_TOKEN
2019
- NPM_TOKEN
21-
# Pushing tags to Git
22-
- GIT_KEY

0 commit comments

Comments
 (0)