@@ -37,13 +37,29 @@ jobs:
3737 GH_TOKEN_STAGING_READ : ${{ secrets.GH_TOKEN_STAGING_READ }}
3838 - name : Load Verdaccio with AmplifyJs
3939 uses : ./amplify-js/.github/actions/load-verdaccio-with-amplify-js
40+ - name : Get AmplifyJS native modules package bump
41+ working-directory : ./amplify-js/
42+ run : |
43+ npx lerna version --conventional-commits --no-git-tag-version --no-push --json --yes | \
44+ jq -c '[ .[] | select(.name | IN("@aws-amplify/react-native", "@aws-amplify/rtn-push-notification", "@aws-amplify/rtn-web-browser")) | {name, newVersion} ]' \
45+ > ${{ github.workspace }}/amplify_native_pkg_versions.json
46+ - name : Cache All Dependencies
47+ id : cache_paths
48+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+ with :
50+ path : |
51+ ${{ inputs.working_directory }}/ios/Pods
52+ ${{ inputs.working_directory }}/ios/build
53+ key : ${{ inputs.test_name }}-detox-cache-${{ hashFiles(format('{0}/yarn.lock', inputs.working_directory), format('{0}/ios/Podfile.lock', inputs.working_directory), format('{0}/amplify_native_pkg_versions.json', github.workspace)) }}
4054 - name : Yarn Install
4155 working-directory : ${{ inputs.working_directory }}
4256 run : |
57+ rm -rf yarn.lock
4358 echo "Current NPM registry: " $(yarn config get registry)
44- $GITHUB_WORKSPACE/amplify-js/scripts/retry-yarn-script.sh -s 'install --frozen-lockfile -- non-interactive' -n 3
59+ $GITHUB_WORKSPACE/amplify-js/scripts/retry-yarn-script.sh -s 'install --non-interactive' -n 3
4560 shell : bash
4661 - name : Install CocoaPods
62+ if : steps.cache_paths.outputs.cache-hit != 'true'
4763 run : |
4864 cd ios && pod install
4965 working-directory : ${{ inputs.working_directory }}
6783 working-directory : ${{ inputs.working_directory }}
6884 shell : bash
6985 - name : Detox Build
86+ if : steps.cache_paths.outputs.cache-hit != 'true'
7087 run : |
7188 detox build -c ios.sim.debug
7289 env :
0 commit comments