Skip to content

Commit 4176822

Browse files
authored
Merge pull request #8 from hungdv136/release
Test publish
2 parents e2722f5 + e7e8c5b commit 4176822

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: npm install
1818
run: make sdk-install
1919

20-
- run: npm run build
20+
- run: make sdk-build
2121

2222
- name: Publish
2323
uses: JS-DevTools/npm-publish@v1

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ sdk-install:
3939
@(cd sdk && npm install)
4040
.PHONY: sdk-install
4141

42+
sdk-build:
43+
@(cd sdk && rm -R -f dist)
44+
@(cd sdk && npm run build)
45+
.PHONY: sdk-build
46+
4247
# Run test for SDK
4348
sdk-test:
4449
@(cd sdk && npm test)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
[![sdk-ci](https://github.com/hungdv136/rio-js/actions/workflows/ci.yml/badge.svg)](https://github.com/hungdv136/rio-js/actions/workflows/ci.yml)
44

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+
57
- [Use Rio as a mock server to test Rest API](#use-rio-as-a-mock-server-to-test-rest-api)
68
- [Introduction](#introduction)
79
- [Why mock?](#why-mock)

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rio-mock-sdk",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"scripts": {
55
"lint": "eslint . --ext .ts",
66
"format": "prettier --config .prettierrc '**/*.ts' --write",

0 commit comments

Comments
 (0)