File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 17
17
- name : npm install
18
18
run : make sdk-install
19
19
20
- - run : npm run build
20
+ - run : make sdk- build
21
21
22
22
- name : Publish
23
23
uses : JS-DevTools/npm-publish@v1
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ sdk-install:
39
39
@ (cd sdk && npm install)
40
40
.PHONY : sdk-install
41
41
42
+ sdk-build :
43
+ @ (cd sdk && rm -R -f dist)
44
+ @ (cd sdk && npm run build)
45
+ .PHONY : sdk-build
46
+
42
47
# Run test for SDK
43
48
sdk-test :
44
49
@ (cd sdk && npm test)
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ sdk-ci] ( https://github.com/hungdv136/rio-js/actions/workflows/ci.yml/badge.svg )] ( https://github.com/hungdv136/rio-js/actions/workflows/ci.yml )
4
4
5
+ [ ![ sdk-publish] ( https://github.com/hungdv136/rio-js/actions/workflows/release.yml/badge.svg )] ( https://github.com/hungdv136/rio-js/actions/workflows/release.yml )
6
+
5
7
- [ Use Rio as a mock server to test Rest API] ( #use-rio-as-a-mock-server-to-test-rest-api )
6
8
- [ Introduction] ( #introduction )
7
9
- [ Why mock?] ( #why-mock )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rio-mock-sdk" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"scripts" : {
5
5
"lint" : " eslint . --ext .ts" ,
6
6
"format" : " prettier --config .prettierrc '**/*.ts' --write" ,
You can’t perform that action at this time.
0 commit comments