Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit fd9f429

Browse files
committed
Merge pull request #4 from Turistforeningen/chore/semantic-release
Add support for automated semantic release
2 parents 1af212c + 95a092e commit fd9f429

File tree

2 files changed

+41
-19
lines changed

2 files changed

+41
-19
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mongo-querystring",
3-
"version": "1.0.0",
3+
"version": null,
44
"description": "Parse and pass URL queries to MongoDB query",
55
"repository": {
66
"type": "git",
@@ -15,7 +15,8 @@
1515
"scripts": {
1616
"lint": "jshint index.js test.js",
1717
"watch": "mocha -w -b -c --check-leaks -R progress test.js",
18-
"test": "mocha -b -c --check-leaks -R spec test.js"
18+
"test": "mocha -b -c --check-leaks -R spec test.js",
19+
"semantic-release": "semantic-release"
1920
},
2021
"keywords": [
2122
"query",
@@ -41,6 +42,7 @@
4142
"homepage": "https://github.com/Turistforeningen/node-mongo-querystring",
4243
"devDependencies": {
4344
"jshint": "^2.8.0",
44-
"mocha": "^2.3.4"
45+
"mocha": "^2.3.4",
46+
"semantic-release": "^4.3.5"
4547
}
4648
}

wercker.yml

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,45 @@
11
box: node:0.10
22

33
build:
4-
steps:
5-
- script:
6-
name: echo nodejs information
7-
code: |
8-
echo "node version $(node -v) running"
9-
echo "npm version $(npm -v) running"
4+
steps:
5+
- script:
6+
name: echo nodejs information
7+
code: |
8+
echo "node version $(node -v) running"
9+
echo "npm version $(npm -v) running"
1010
11-
- npm-install
11+
- npm-install
1212

13-
- script:
14-
name: lint
15-
code: npm run lint
13+
- script:
14+
name: lint
15+
code: npm run lint
1616

17-
- npm-test
17+
- npm-test
1818

19-
after-steps:
20-
- turistforeningen/slack-notifier:
21-
url: $SLACK_WEBHOOK_URL
19+
after-steps:
20+
- turistforeningen/slack-notifier:
21+
url: $SLACK_WEBHOOK_URL
2222

2323
deploy:
24-
steps:
25-
- turistforeningen/npm-publish
24+
steps:
25+
# Reinstall node_modules to fix broken symlinks
26+
# https://github.com/wercker/docs/issues/310
27+
- script:
28+
name: rm node_modules
29+
code: rm -rf node_modules
30+
31+
- npm-install
32+
33+
- script:
34+
name: semantic release pre
35+
code: npm run semantic-release -- pre
36+
37+
- turistforeningen/npm-publish
38+
39+
- script:
40+
name: semantic release post
41+
code: npm run semantic-release -- post
42+
43+
after-steps:
44+
- turistforeningen/slack-notifier:
45+
url: $SLACK_WEBHOOK_URL

0 commit comments

Comments
 (0)