Skip to content

Commit 4f854e6

Browse files
committed
fix CI
1 parent 60ce572 commit 4f854e6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,21 @@ jobs:
5050
run: npm run build
5151

5252
- name: Install Cordova CLI
53+
env:
54+
CORDOVA_VERSION: "11"
5355
run: |
5456
mkdir ~/.npm-global
5557
npm config set prefix '~/.npm-global'
5658
export PATH=~/.npm-global/bin:$PATH
57-
npm install cordova@10 -g
59+
npm install cordova@$CORDOVA_VERSION -g
5860
5961
- name: Create Cordova app, install plugin then build app
62+
env:
63+
CORDOVA_IOS_VERSION: "latest"
6064
run: |
6165
npm config set prefix '~/.npm-global'
6266
export PATH=~/.npm-global/bin:$PATH
6367
cd ..; cordova create myApp org.apache.cordova.myApp myApp; cd myApp;
64-
cordova platform add ios@latest --verbose
68+
cordova platform add ios@$CORDOVA_IOS_VERSION --verbose
6569
cordova plugin add ../cordova-plugin-iosrtc --verbose
6670
cordova build ios --verbose

0 commit comments

Comments
 (0)