File tree Expand file tree Collapse file tree 8 files changed +228
-56
lines changed Expand file tree Collapse file tree 8 files changed +228
-56
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
version : 2
3
3
jobs :
4
- node-latest : &test
4
+ update : &update
5
5
docker :
6
6
- image : node:latest
7
7
working_directory : ~/cli
8
8
steps :
9
+ - add_ssh_keys
9
10
- checkout
10
11
- restore_cache : &restore_cache
11
12
keys :
@@ -15,17 +16,16 @@ jobs:
15
16
name : Install dependencies
16
17
command : .circleci/greenkeeper
17
18
- run :
18
- name : Testing
19
- command : yarn test
20
- - run :
21
- name : Submitting code coverage to codecov
19
+ name : Updating schema
22
20
command : |
23
- ./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
24
- curl -s https://codecov.io/bash | bash
25
- node-8 :
26
- << : *test
27
- docker :
28
- - image : node:8
21
+ git config --global push.default simple
22
+ git config --global user.name "$GIT_AUTHOR_NAME"
23
+ git config --global user.email "$GIT_AUTHOR_EMAIL"
24
+ curl https://api.heroku.com/schema -H "Accept: application/vnd.heroku+json; version=3" > schema.json
25
+ cat schema.json | json2ts > lib/index.d.ts
26
+ git add schema.json lib/index.d.ts
27
+ git commit -m "fix: updated schema"
28
+ git push origin master
29
29
release :
30
30
<< : *test
31
31
steps :
@@ -53,12 +53,18 @@ workflows:
53
53
version : 2
54
54
" @heroku-cli/typescript-api-schema " :
55
55
jobs :
56
- - node-latest
57
- - node-8
56
+ - update
58
57
- release :
59
58
context : org-global
60
59
filters :
61
60
branches : {only: master}
62
- requires :
63
- - node-latest
64
- - node-8
61
+ nightly :
62
+ triggers :
63
+ - schedule :
64
+ cron : " 0 11 * * *"
65
+ filters :
66
+ branches :
67
+ only :
68
+ - master
69
+ jobs :
70
+ - update
Original file line number Diff line number Diff line change 4
4
"author" : " Jeff Dickey @jdxcode" ,
5
5
"bugs" : " https://github.com/heroku/typescript-api-schema/issues" ,
6
6
"dependencies" : {
7
+ "json-schema-to-typescript" : " ^5.5.0" ,
7
8
"tslib" : " ^1"
8
9
},
9
10
"devDependencies" : {
29
30
" oclif"
30
31
],
31
32
"license" : " MIT" ,
32
- "main" : " lib/index.js" ,
33
33
"repository" : " heroku/typescript-api-schema" ,
34
- "scripts" : {
35
- "posttest" : " tsc -p test --noEmit && tslint -p test -t stylish" ,
36
- "prepack" : " rm -rf lib && tsc" ,
37
- "test" : " nyc mocha --forbid-only \" test/**/*.test.ts\" "
38
- },
39
34
"types" : " lib/index.d.ts"
40
35
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments