Skip to content

Commit 3118b4c

Browse files
committed
Simply use --ignore-engines
1 parent 593d15f commit 3118b4c

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

Diff for: .github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
- name: Checkout
3434
uses: actions/checkout@v2
3535

36-
- name: Install Node.js 12.x
36+
- name: Install Node.js 14.x
3737
uses: actions/setup-node@v1
3838
with:
39-
node-version: '14.18.2'
39+
node-version: '14.x'
4040
registry-url: 'https://registry.npmjs.org'
4141

42-
- name: Install Python 2.7
42+
- name: Install Python 3.x
4343
uses: actions/setup-python@v2
4444
with:
45-
python-version: '2.7'
45+
python-version: '3.x'
4646

4747
- name: Package
4848
shell: bash
@@ -77,8 +77,8 @@ jobs:
7777
fi
7878
fi
7979
80-
yarn --cwd ./electron/packager/
81-
yarn --cwd ./electron/packager/ package
80+
yarn --ignore-engines --cwd ./electron/packager/
81+
yarn --ignore-engines --cwd ./electron/packager/ package
8282
8383
- name: Upload [GitHub Actions]
8484
uses: actions/upload-artifact@v2

Diff for: .github/workflows/check-i18n-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
registry-url: 'https://registry.npmjs.org'
3333

3434
- name: Install dependencies
35-
run: yarn
35+
run: yarn --ignore-engines
3636

3737
- name: Check for errors
38-
run: yarn i18n:check
38+
run: yarn i18n:check --ignore-engines

Diff for: .github/workflows/i18n-nightly-push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: Install dependencies
22-
run: yarn
22+
run: yarn --ignore-engines
2323

2424
- name: Run i18n:push script
25-
run: yarn run i18n:push
25+
run: yarn --ignore-engines run i18n:push
2626
env:
2727
TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }}
2828
TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }}

Diff for: .github/workflows/i18n-weekly-pull.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
- name: Install Node.js 12.x
1616
uses: actions/setup-node@v2
1717
with:
18-
node-version: '14.18.2'
18+
node-version: '14.x'
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: Install dependencies
22-
run: yarn
22+
run: yarn --ignore-engines
2323

2424
- name: Run i18n:pull script
25-
run: yarn run i18n:pull
25+
run: yarn --ignore-engines run i18n:pull
2626
env:
2727
TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }}
2828
TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }}

Diff for: electron/packager/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@
103103
//-------------------------------------------------------------------------------------------------+
104104
// Rebuild the extension with the copied `yarn.lock`. It is a must to use the same Theia versions. |
105105
//-------------------------------------------------------------------------------------------------+
106-
exec(`yarn --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, `Building the ${productName} application`);
106+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, `Building the ${productName} application`);
107107

108108
//-------------------------------------------------------------------------------------------------------------------------+
109109
// Test the application. With this approach, we cannot publish test results to GH Actions but save 6-10 minutes per builds |
110110
//-------------------------------------------------------------------------------------------------------------------------+
111-
exec(`yarn --network-timeout 1000000 --cwd ${path('..', workingCopy)} test`, `Testing the ${productName} application`);
111+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)} test`, `Testing the ${productName} application`);
112112

113113
// Collect all unused dependencies by the backend. We have to remove them from the electron app.
114114
// The `bundle.js` already contains everything we need for the frontend.
@@ -176,8 +176,8 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
176176
//-------------------------------------------------------------------------------------------+
177177
// Install all private and public dependencies for the electron application and build Theia. |
178178
//-------------------------------------------------------------------------------------------+
179-
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies');
180-
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`);
179+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies');
180+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`);
181181

182182
//------------------------------------------------------------------------------+
183183
// Create a throw away dotenv file which we use to feed the builder with input. |
@@ -193,7 +193,7 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
193193
//-----------------------------------+
194194
// Package the electron application. |
195195
//-----------------------------------+
196-
exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} package`, `Packaging your ${productName} application`);
196+
exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} package`, `Packaging your ${productName} application`);
197197

198198
//-----------------------------------------------------------------------------------------------------+
199199
// Copy to another folder. Azure does not support wildcard for `PublishBuildArtifacts@1.pathToPublish` |

0 commit comments

Comments
 (0)