-
Notifications
You must be signed in to change notification settings - Fork 6
/
wercker.yml
69 lines (66 loc) · 1.76 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
box: node:7.10
# Build definition
build:
steps:
- npm-install
- npm-test
- script:
name: publish
code: |
npm run clean
npm run build
deploy:
steps:
- install-packages:
packages: git
- add-ssh-key:
keyname: GITHUB_KEY
- add-to-known_hosts@2.0.1:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
type: rsa
local: true
- script:
name: saving .npmrc
code: |
shopt -s xpg_echo
echo $NPMRC > ~/.npmrc
- npm-install
- script:
name: version increment
code: |
git checkout $WERCKER_GIT_BRANCH
git reset --hard $WERCKER_GIT_COMMIT
git config --global user.name "C.T.Co SCM"
git config --global user.email "cscm@ctco.lv"
npm set init.author.name "C.T.Co"
npm set init.author.email "cscm@ctco.lv"
npm set init.author.url "http://ctco.github.io"
node_modules/grunt/bin/grunt bump
npm publish ./lib
gh-pages:
steps:
- install-packages:
packages: git
- add-ssh-key:
keyname: GITHUB_KEY
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
use-md5: true
type: rsa
local: true
- script:
name: saving .npmrc
code: |
shopt -s xpg_echo
echo $NPMRC > ~/.npmrc
- npm-install
- script:
name: deploy to gh-pages
code: |
git checkout $WERCKER_GIT_BRANCH
git reset --hard $WERCKER_GIT_COMMIT
git config --global user.name "C.T.Co SCM"
git config --global user.email "cscm@ctco.lv"
npm run deploy