Skip to content

Commit

Permalink
Merge pull request #145 from callstack/update-ci
Browse files Browse the repository at this point in the history
Update CI, Node.js 16 actions are deprecated.
  • Loading branch information
retyui committed Feb 25, 2024
2 parents 19cb342 + 2f24c46 commit c0c9b7b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/actions/build-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ runs:
# Update pods after adding new module
npx pod-install
# Build iOS App
xcodebuild -scheme ${{ env.APP_NAME }} -workspace ios/${{ env.APP_NAME }}.xcworkspace -configuration Release -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' | xcbeautify --quiet
# set output variable
# set output variable
echo "app_path=$(find ~/Library/Developer/Xcode/DerivedData -type d -name "${{ env.APP_NAME }}.app")" >> $GITHUB_OUTPUT
else
# Enable new arch for Android
Expand All @@ -94,13 +94,13 @@ runs:
# Build Android
./android/gradlew assembleRelease --no-daemon -p android -PreactNativeArchitectures=${{ inputs.arch }}
# set output variable
echo "app_path=$(find $(pwd)/android -type f -name '*.apk')" >> $GITHUB_OUTPUT
fi
- name: Store Android artifacts on GitHub
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ inputs.store-artifacts == 'true' }}
with:
name: ${{ inputs.platform }}-${{ inputs.rn-ver }}-newArch${{ inputs.new-arch-enabled }}
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:


- name: Restore example node_modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore_example_node_modules
with:
key: ${{ runner.os }}-yarn-example-${{ hashFiles('./example/yarn.lock') }}
Expand All @@ -41,15 +41,15 @@ runs:
- name: Save example node_modules to cache
if: steps.restore_example_node_modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: ${{ steps.restore_example_node_modules.outputs.cache-primary-key }}
path: ${{ github.workspace }}/example/node_modules



- name: Restore node_modules from cache
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
id: restore_node_modules
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
Expand All @@ -71,7 +71,7 @@ runs:
- name: Save node_modules to cache
if: steps.restore_node_modules.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
key: ${{ steps.restore_node_modules.outputs.cache-primary-key }}
path: ${{ github.workspace }}/node_modules
2 changes: 1 addition & 1 deletion .github/actions/lock-java-ver/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ runs:
using: 'composite'
steps:
- name: Setup Java ${{ inputs.java-version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ inputs.java-version }}
2 changes: 1 addition & 1 deletion .github/actions/lock-nodejs-ver/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ runs:
using: 'composite'
steps:
- name: Setup Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

0 comments on commit c0c9b7b

Please sign in to comment.