-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
53 lines (53 loc) · 1.44 KB
/
circle.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
machine:
node:
version: 6.1.0
dependencies:
pre:
- git config user.name Leko
- git config user.email $NPM_EMAIL
override:
- npm install
- npm run build
post:
- go get github.com/aktau/github-release
- sudo apt-get install -y jq
test:
pre:
- npm run lint
post:
- bash <(curl -s https://codecov.io/bash)
deployment:
production:
branch: master
commands:
- git tag $(jq -r .version package.json)
- git push origin $(jq -r .version package.json)
- |
github-release release \
--user Leko \
--repo in-progress.js \
--tag $(jq -r .version package.json) \
--name "v$(jq -r .version package.json)"
- |
github-release upload \
--user Leko \
--repo in-progress.js \
--tag $(jq -r .version package.json) \
--name "inprogress.js" \
--file dist/inprogress.js
- |
github-release upload \
--user Leko \
--repo in-progress.js \
--tag $(jq -r .version package.json) \
--name "inprogress.min.js" \
--file dist/inprogress.min.js
- |
github-release upload \
--user Leko \
--repo in-progress.js \
--tag $(jq -r .version package.json) \
--name "inprogress.min.js.map" \
--file dist/inprogress.min.js.map
- echo -e "$NPM_USER\n$NPM_PASS\n$NPM_EMAIL" | npm login
- npm publish