Browse Source

ci: 🎡 add travis ci

dongdayu 5 years ago
parent
commit
9016a6afb0
2 changed files with 18 additions and 2 deletions
  1. 14
    0
      .travis.yml
  2. 4
    2
      package.json

+ 14
- 0
.travis.yml View File

1
+language: node_js
2
+
3
+node_js:
4
+  - 10
5
+
6
+jobs:
7
+  include:
8
+    - stage: release
9
+      node_js: lts/*
10
+      deploy:
11
+        provider: script
12
+        skip_cleanup: true
13
+        script:
14
+          - npx semantic-release

+ 4
- 2
package.json View File

24
   "scripts": {
24
   "scripts": {
25
     "commit": "npx git-cz",
25
     "commit": "npx git-cz",
26
     "lint": "tslint --fix ./src/**/*.ts",
26
     "lint": "tslint --fix ./src/**/*.ts",
27
-    "build": "tsc"
27
+    "build": "tsc",
28
+    "semantic-release": "semantic-release"
28
   },
29
   },
29
   "dependencies": {
30
   "dependencies": {
30
     "@types/react-native": "^0.57.45"
31
     "@types/react-native": "^0.57.45"
31
   },
32
   },
32
   "devDependencies": {
33
   "devDependencies": {
33
     "tslint": "^5.16.0",
34
     "tslint": "^5.16.0",
34
-    "typescript": "^3.4.3"
35
+    "typescript": "^3.4.3",
36
+    "semantic-release": "^15.13.3"
35
   },
37
   },
36
   "peerDependencies": {
38
   "peerDependencies": {
37
     "react-native": "^0.59.5"
39
     "react-native": "^0.59.5"