Skip to content

Commit

Permalink
Merge pull request #18 from infinitered/remove-vars
Browse files Browse the repository at this point in the history
Fix URLs in packages
  • Loading branch information
trevor-coleman authored Sep 14, 2023
2 parents 5f0a35e + 0f91b92 commit e251ca1
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .changeset/silly-gifts-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@infinitered/react-native-mlkit-object-detection": minor
"@infinitered/react-native-mlkit-face-detection": minor
"@infinitered/react-native-mlkit-image-labeling": minor
"@infinitered/react-native-mlkit-core": minor
---

Fix URLs in package.json
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 18
- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request
- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 5 additions & 4 deletions modules/react-native-mlkit-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@
"ci:test": "echo \"Fake testing....\"",
"expo-module": "expo-module",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"release": "npm publish"
},
"keywords": [
"react-native",
"expo",
"react-native-mlkit-core",
"ExpoMLkitCore"
],
"repository": "https://github.com/infinitered/react-native-mlkit-core",
"repository": "https://github.com/infinitered/react-native-mlkit",
"bugs": {
"url": "https://github.com/infinitered/react-native-mlkit-core/issues"
"url": "https://github.com/infinitered/react-native-mlkit/issues"
},
"author": "Trevor Coleman <[email protected]> (https://github.com/trevor-coleman)",
"license": "MIT",
"homepage": "https://github.com/infinitered/react-native-mlkit#readme",
"homepage": "https://infinitered.github.io/react-native-mlkit",
"devDependencies": {
"@testing-library/react-native": "^12.3.0",
"expo-module-scripts": "^3.0.11",
Expand Down
2 changes: 1 addition & 1 deletion modules/react-native-mlkit-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"outDir": "./build"
},
"include": ["./src"],
"exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
}
3 changes: 2 additions & 1 deletion modules/react-native-mlkit-face-detection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"ci:lint": "echo \"Fake linting....\"",
"ci:test": "echo \"Fake testing....\"",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"release": "npm publish"
},
"keywords": [
"react-native",
Expand Down
10 changes: 2 additions & 8 deletions modules/react-native-mlkit-face-detection/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"compilerOptions": {
"outDir": "./build"
},
"include": [
"./src"
],
"exclude": [
"**/__mocks__/*",
"**/__tests__/*",
"**/__stories__/*"
]
"include": ["./src"],
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
}
5 changes: 3 additions & 2 deletions modules/react-native-mlkit-image-labeling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"ci:test": "echo \"Fake testing....\"",
"expo-module": "expo-module",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"release": "npm publish"
},
"keywords": [
"react-native",
Expand All @@ -30,7 +31,7 @@
},
"author": "Trevor Coleman <[email protected]> (https://www.github.com/trevor-coleman)",
"license": "MIT",
"homepage": "https://www.github.com/infinitered/react-native-mlkit#readme",
"homepage": "https://infinitered.github.io/react-native-mlkit/",
"dependencies": {
"@infinitered/react-native-mlkit-core": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion modules/react-native-mlkit-image-labeling/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"outDir": "./build"
},
"include": ["./src"],
"exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
}
10 changes: 6 additions & 4 deletions modules/react-native-mlkit-object-detection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Expo module for MLKit Object Detection",
"main": "build/index.js",
"types": "build/index.d.ts",
"private": false,
"scripts": {
"build": "expo-module build",
"clean": "expo-module clean",
Expand All @@ -16,21 +17,22 @@
"ci:test": "echo \"Fake testing....\"",
"expo-module": "expo-module",
"open:ios": "open -a \"Xcode\" example/ios",
"open:android": "open -a \"Android Studio\" example/android"
"open:android": "open -a \"Android Studio\" example/android",
"release": "npm publish"
},
"keywords": [
"react-native",
"expo",
"react-native-mlkit-object-detection",
"RNMLKitObjectDetection"
],
"repository": "https://github.com/infinitered/react-native-mlkit-object-detection",
"repository": "https://github.com/infinitered/react-native-mlkit",
"bugs": {
"url": "https://github.com/infinitered/react-native-mlkit-object-detection/issues"
"url": "https://github.com/infinitered/react-native-mlkit/issues"
},
"author": "Trevor Coleman <[email protected]> (https://github.com/trevor-coleman)",
"license": "MIT",
"homepage": "https://github.com/infinitered/react-native-mlkit#readme",
"homepage": "https://infinitered.github.io/react-native-mlkit/",
"dependencies": {
"@infinitered/react-native-mlkit-core": "*",
"expo-modules-core": "^1.5.7"
Expand Down
2 changes: 1 addition & 1 deletion modules/react-native-mlkit-object-detection/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"outDir": "./build"
},
"include": ["./src"],
"exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
"exclude": ["**/__mocks__/*", "**/__tests__/*"]
}
13 changes: 10 additions & 3 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,16 @@
"^build",
"^lint"
],
"cache": false,
"persistent": true

"cache": false
},
"release": {
"dependsOn": [
"^build",
"^lint",
"^test",
"build"
],
"cache": true
}
}
}

0 comments on commit e251ca1

Please sign in to comment.