File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 scope : ' @omarsdev'
2828 cache : ' yarn'
2929
30+ - name : Write npmrc for GitHub Packages
31+ run : |
32+ cat <<'EOF' > .npmrc
33+ @omarsdev:registry=https://npm.pkg.github.com
34+ //npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
35+ always-auth=true
36+ EOF
37+ env :
38+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_PACKAGES_TOKEN }}
39+
3040 - name : Install dependencies
3141 run : yarn install --frozen-lockfile
3242
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ yarn add react-native-contacts-last-updated
99
1010# iOS
1111cd ios && pod install
12+ # If your project relies on Bundler, run `bundle install` first.
1213```
1314
1415Rebuild your app after installing. The module automatically uses the TurboModule bridge when it is available, and falls back to the classic ` NativeModules ` bridge otherwise.
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import path from "path";
44describe ( "react-native config" , ( ) => {
55 it ( "exposes podspec path and android package" , ( ) => {
66 const config = require ( "../react-native.config.js" ) ;
7- expect ( config ) . toHaveProperty ( "dependency.platforms.ios.podspecPath " ) ;
7+ expect ( config ) . toHaveProperty ( "dependency.platforms.ios.podspec " ) ;
88 expect ( config ) . toHaveProperty ( "dependency.platforms.android.packageImportPath" , "com.contactsupdated.ContactsLastUpdatedPackage" ) ;
99 expect ( config ) . toHaveProperty ( "dependency.platforms.android.packageInstance" , "new ContactsLastUpdatedPackage()" ) ;
1010
11- const podspecPath = config . dependency . platforms . ios . podspecPath as string ;
11+ const podspecPath = config . dependency . platforms . ios . podspec as string ;
1212 const resolved = path . resolve ( __dirname , ".." , podspecPath ) ;
1313 expect ( fs . existsSync ( resolved ) ) . toBe ( true ) ;
1414 } ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = {
22 dependency : {
33 platforms : {
44 ios : {
5- podspecPath : './react-native-contacts-last-updated.podspec' ,
5+ podspec : './react-native-contacts-last-updated.podspec' ,
66 } ,
77 android : {
88 sourceDir : './android' ,
You can’t perform that action at this time.
0 commit comments