From 1ea5b25d2441fb19706b31c50e3794e8fe7d54ce Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 16 Jul 2022 13:30:19 +0500 Subject: [PATCH] ci: add github packages on codemagic --- apps/mobile/codemagic.yaml | 10 ++++++++ .../ios/Notesnook.xcodeproj/project.pbxproj | 24 +++++++++---------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/apps/mobile/codemagic.yaml b/apps/mobile/codemagic.yaml index a807cc84d..1323f5c63 100644 --- a/apps/mobile/codemagic.yaml +++ b/apps/mobile/codemagic.yaml @@ -8,6 +8,7 @@ workflows: - appstore_credentials - certificate_credentials - provisioning_profile + - github_token vars: XCODE_WORKSPACE: 'Notesnook.xcworkspace' # <-- Put the name of your Xcode workspace here @@ -22,6 +23,15 @@ workflows: cache_paths: - $HOME/Library/Caches/CocoaPods scripts: + - name: Setup npmrc + run: | + echo "registry=https://npm.pkg.github.com" > .npmrc + echo "@streetwriters:registry=https://npm.pkg.github.com" >> .npmrc + echo "//npm.pkg.github.com/:_authToken=$PACKAGES_TOKEN" >> .npmrc + + - name: Setup yarnrc + run: echo "\"@streetwriters:registry\" \"https://npm.pkg.github.com\"" > .yarnrc + - name: Install npm dependencies script: | yarn install --network-concurrency 1 diff --git a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj index a80c048ec..174e382d3 100644 --- a/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj +++ b/apps/mobile/ios/Notesnook.xcodeproj/project.pbxproj @@ -1079,7 +1079,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEVELOPMENT_TEAM = 53CWBG3QUC; ENABLE_BITCODE = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; @@ -1152,7 +1152,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -1181,7 +1181,7 @@ CODE_SIGN_ENTITLEMENTS = Notesnook/Notesnook.entitlements; CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEVELOPMENT_TEAM = 53CWBG3QUC; GCC_GENERATE_DEBUGGING_SYMBOLS = YES; HEADER_SEARCH_PATHS = ( @@ -1253,7 +1253,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; ONLY_ACTIVE_ARCH = NO; OTHER_LDFLAGS = ( "$(inherited)", @@ -1411,7 +1411,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = 53CWBG3QUC; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -1422,7 +1422,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.notewidget; @@ -1452,7 +1452,7 @@ CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 53CWBG3QUC; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -1463,7 +1463,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.notewidget; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1492,7 +1492,7 @@ CODE_SIGN_ENTITLEMENTS = "Make Note/Make Note.entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEBUG_INFORMATION_FORMAT = dwarf; DEVELOPMENT_TEAM = 53CWBG3QUC; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -1565,7 +1565,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share; @@ -1595,7 +1595,7 @@ CODE_SIGN_IDENTITY = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 2002; + CURRENT_PROJECT_VERSION = 2004; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; DEVELOPMENT_TEAM = 53CWBG3QUC; GCC_C_LANGUAGE_STANDARD = gnu11; @@ -1668,7 +1668,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 2.0.0; + MARKETING_VERSION = 2.1.0; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = org.streetwriters.notesnook.share; PRODUCT_NAME = "$(TARGET_NAME)";