Fix Java version missing

This commit is contained in:
Zhiyuan Zheng 2022-06-11 21:26:30 +02:00
parent e66074ea70
commit 7edbe5f798
1 changed files with 10 additions and 5 deletions

View File

@ -58,7 +58,7 @@ jobs:
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: '11' java-version: '17'
- name: -- Step 4 -- Install node dependencies - name: -- Step 4 -- Install node dependencies
run: yarn install run: yarn install
- name: -- Step 5 -- Install ruby dependencies - name: -- Step 5 -- Install ruby dependencies
@ -89,16 +89,21 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version-file: '.nvmrc' node-version-file: '.nvmrc'
- name: -- Step 3 -- Use Expo action - name: -- Step 3 -- Setup Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: -- Step 4 -- Use Expo action
uses: expo/expo-github-action@v7 uses: expo/expo-github-action@v7
with: with:
expo-version: latest expo-version: latest
token: ${{ secrets.EXPO_TOKEN }} token: ${{ secrets.EXPO_TOKEN }}
- name: -- Step 4 -- Install node dependencies - name: -- Step 5 -- Install node dependencies
run: yarn install run: yarn install
- name: -- Step 5 -- Install ruby dependencies - name: -- Step 6 -- Install ruby dependencies
run: bundle install run: bundle install
- name: -- Step 6 -- Run fastlane - name: -- Step 7 -- Run fastlane
env: env:
ENVIRONMENT: ${{ steps.branch.outputs.branch }} ENVIRONMENT: ${{ steps.branch.outputs.branch }}
LC_ALL: en_US.UTF-8 LC_ALL: en_US.UTF-8