Browse Source

fix(package.json): Add license to podspec and update package.json version dynamically. (#98)

Fix cocoapods install error and warning.
```
Fetching podspec for `react-native-webview` from `../node_modules/react-native-webview`
[!] The `react-native-webview` pod failed to validate due to 1 error:
    - WARN  | attributes: Missing required attribute `license`.
    - ERROR | version: The version of the spec should be higher than 0.
    - WARN  | license: Missing license type.
    - WARN  | source: Git sources should specify a tag.
```
Bae Hyeonseung 6 years ago
parent
commit
59b513b754
3 changed files with 17 additions and 1 deletions
  1. 14
    0
      .releaserc
  2. 1
    0
      package.json
  3. 2
    1
      react-native-webview.podspec

+ 14
- 0
.releaserc View File

@@ -0,0 +1,14 @@
1
+{
2
+  "plugins": [
3
+    "@semantic-release/commit-analyzer",
4
+    "@semantic-release/release-notes-generator",
5
+    "@semantic-release/npm",
6
+    [
7
+      "@semantic-release/github",
8
+      {
9
+        "assets": ["package.json"],
10
+        "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
11
+      }
12
+    ]
13
+  ]
14
+}

+ 1
- 0
package.json View File

@@ -6,6 +6,7 @@
6 6
   "contributors": [
7 7
     "Thibault Malbranche <malbranche.thibault@gmail.com>"
8 8
   ],
9
+  "license": "MIT",
9 10
   "version": "0.0.0-development",
10 11
   "homepage": "https://github.com/react-native-community/react-native-webview#readme",
11 12
   "scripts": {

+ 2
- 1
react-native-webview.podspec View File

@@ -6,6 +6,7 @@ Pod::Spec.new do |s|
6 6
   s.name         = package['name']
7 7
   s.version      = package['version']
8 8
   s.summary      = package['description']
9
+  s.license      = package['license']
9 10
 
10 11
   s.authors      = package['author']
11 12
   s.homepage     = package['homepage']
@@ -15,4 +16,4 @@ Pod::Spec.new do |s|
15 16
   s.source_files  = "ios/**/*.{h,m}"
16 17
 
17 18
   s.dependency 'React'
18
-end
19
+end