Skip to content

Commit 7dcc391

Browse files
authored
chore: Update GitHub Actions and bump Node to 24 across all workflows (#1059)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [x] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> Trigger workflows manually. ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues #1058 <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent a617188 commit 7dcc391

File tree

10 files changed

+47
-55
lines changed

10 files changed

+47
-55
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ runs:
55
using: composite
66
steps:
77
- name: Setup Node.js
8-
uses: actions/setup-node@v3
8+
uses: actions/setup-node@v6
99
with:
1010
node-version-file: .nvmrc
1111

1212
- name: Cache dependencies
1313
id: yarn-cache
14-
uses: actions/cache@v3
14+
uses: actions/cache@v5
1515
with:
1616
path: |
1717
**/node_modules

.github/workflows/build-android-llm-example.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,34 @@ jobs:
2525
steps:
2626
- name: Free Disk Space (Manual)
2727
run: |
28-
sudo rm -rf /usr/share/dotnet
29-
sudo rm -rf /opt/ghc
30-
sudo rm -rf /opt/hostedtoolcache/CodeQL
31-
sudo docker system prune -af
32-
28+
sudo rm -rf /usr/share/dotnet
29+
sudo rm -rf /opt/ghc
30+
sudo rm -rf /opt/hostedtoolcache/CodeQL
31+
sudo docker system prune -af
32+
3333
- name: Check out Git repository
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v6
3535
with:
3636
submodules: recursive
3737
- name: Setup Node.js
38-
uses: actions/setup-node@v4
38+
uses: actions/setup-node@v6
3939
with:
40-
node-version: '18'
41-
cache: 'yarn'
40+
node-version: "24"
41+
cache: "yarn"
4242
- name: Setup Java 17
43-
uses: actions/setup-java@v4
43+
uses: actions/setup-java@v5
4444
with:
45-
distribution: 'zulu'
45+
distribution: "zulu"
4646
java-version: 17
47-
cache: 'gradle'
47+
cache: "gradle"
4848
- name: Install root dependencies
4949
run: yarn install --immutable
5050
- name: Install Expo CLI
5151
run: |
5252
npm install -g @expo/cli
5353
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
5454
- name: Cache Expo prebuild
55-
uses: actions/cache@v4
55+
uses: actions/cache@v5
5656
with:
5757
path: ${{ env.WORKING_DIRECTORY }}/android
5858
key: ${{ runner.os }}-expo-android-${{ hashFiles('${{ env.WORKING_DIRECTORY }}/app.json', '${{ env.WORKING_DIRECTORY }}/package.json') }}
@@ -67,7 +67,7 @@ jobs:
6767
echo "Android project exists, skipping prebuild"
6868
fi
6969
- name: Cache Gradle
70-
uses: actions/cache@v4
70+
uses: actions/cache@v5
7171
with:
7272
path: |
7373
~/.gradle/caches

.github/workflows/build-ios-llm-example.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
branches:
55
- main
66
paths:
7-
- '.github/workflows/build-ios-llm-example.yml'
8-
- '*.podspec'
9-
- 'apps/llm/**'
10-
- 'packages/react-native-executorch/**'
7+
- ".github/workflows/build-ios-llm-example.yml"
8+
- "*.podspec"
9+
- "apps/llm/**"
10+
- "packages/react-native-executorch/**"
1111
pull_request:
1212
paths:
13-
- '.github/workflows/build-ios-llm-example.yml'
14-
- '*.podspec'
15-
- 'apps/llm/**'
16-
- 'packages/react-native-executorch/**'
13+
- ".github/workflows/build-ios-llm-example.yml"
14+
- "*.podspec"
15+
- "apps/llm/**"
16+
- "packages/react-native-executorch/**"
1717
workflow_dispatch:
1818
jobs:
1919
build:
@@ -27,33 +27,25 @@ jobs:
2727
with:
2828
xcode-version: latest-stable
2929
- name: Check out Git repository
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
3131
with:
3232
submodules: recursive
3333
- name: Setup Node.js
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3535
with:
36-
node-version: '18'
37-
cache: 'yarn'
36+
node-version: "24"
37+
cache: "yarn"
3838
- name: Install root dependencies
3939
run: yarn install --immutable
4040
- name: Install Expo CLI
4141
run: |
4242
npm install -g @expo/cli
4343
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
44-
- name: Cache Expo prebuild
45-
uses: actions/cache@v4
46-
with:
47-
path: apps/llm/ios
48-
key: ${{ runner.os }}-expo-ios-${{ hashFiles('apps/llm/app.json', 'apps/llm/package.json') }}
4944
- name: Generate native iOS project
5045
working-directory: apps/llm
5146
run: |
52-
if [ ! -d "ios" ]; then
53-
npx expo prebuild --platform ios --no-install
54-
else
55-
echo "iOS project exists, skipping prebuild"
56-
fi
47+
rm -rf ios
48+
npx expo prebuild --platform ios --no-install
5749
- name: Install CocoaPods dependencies
5850
working-directory: apps/llm/ios
5951
run: |

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v6
1919

2020
- name: Setup
2121
uses: ./.github/actions/setup
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v6
3434

3535
- name: Setup
3636
uses: ./.github/actions/setup

.github/workflows/docs-build-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
WORKING_DIRECTORY: docs
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v3
29-
- name: Use Node.js 20
30-
uses: actions/setup-node@v4
28+
uses: actions/checkout@v6
29+
- name: Use Node.js 24
30+
uses: actions/setup-node@v6
3131
with:
32-
node-version: 20
32+
node-version: 24
3333
- name: Install node dependencies
3434
working-directory: ${{ env.WORKING_DIRECTORY }}
3535
run: yarn install --immutable

.github/workflows/npm-publish-bare-resource-fetcher.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
TAG: PLACEHOLDER
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737

3838
- name: Setup Node
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v6
4040
with:
41-
node-version: 22.22.1
41+
node-version: 24
4242
cache: 'yarn'
4343
registry-url: https://registry.npmjs.org/
4444

.github/workflows/npm-publish-expo-resource-fetcher.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
TAG: PLACEHOLDER
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737

3838
- name: Setup Node
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v6
4040
with:
41-
node-version: 22.22.1
41+
node-version: 24
4242
cache: 'yarn'
4343
registry-url: https://registry.npmjs.org/
4444

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
TAG: PLACEHOLDER
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737

3838
- name: Setup Node
39-
uses: actions/setup-node@v4
39+
uses: actions/setup-node@v6
4040
with:
41-
node-version: 22.22.1
41+
node-version: 24
4242
cache: 'yarn'
4343
registry-url: https://registry.npmjs.org/
4444

.github/workflows/publish_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Check out
17-
uses: actions/checkout@v1
17+
uses: actions/checkout@v6
1818

1919
- name: Generate docs
2020
run: >-

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v22
1+
v24

0 commit comments

Comments
 (0)