diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02d4a37bd..6f9040af7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -77,8 +77,8 @@ jobs: fi fi - yarn --cwd ./electron/packager/ - yarn --cwd ./electron/packager/ package + yarn --cwd ./electron/packager/ --ignore-engines + yarn --cwd ./electron/packager/ package --ignore-engines - name: Upload [GitHub Actions] uses: actions/upload-artifact@v2 diff --git a/.github/workflows/check-i18n-task.yml b/.github/workflows/check-i18n-task.yml index f1568b4a2..902b2bf1f 100644 --- a/.github/workflows/check-i18n-task.yml +++ b/.github/workflows/check-i18n-task.yml @@ -32,7 +32,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install dependencies - run: yarn + run: yarn --ignore-engines - name: Check for errors - run: yarn i18n:check + run: yarn i18n:check --ignore-engines diff --git a/.github/workflows/i18n-nightly-push.yml b/.github/workflows/i18n-nightly-push.yml index 2406dd5bb..df504be1b 100644 --- a/.github/workflows/i18n-nightly-push.yml +++ b/.github/workflows/i18n-nightly-push.yml @@ -19,10 +19,10 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install dependencies - run: yarn + run: yarn --ignore-engines - name: Run i18n:push script - run: yarn run i18n:push + run: yarn --ignore-engines run i18n:push env: TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }} TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }} diff --git a/.github/workflows/i18n-weekly-pull.yml b/.github/workflows/i18n-weekly-pull.yml index c33822e7f..a265e35c0 100644 --- a/.github/workflows/i18n-weekly-pull.yml +++ b/.github/workflows/i18n-weekly-pull.yml @@ -19,10 +19,10 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install dependencies - run: yarn + run: yarn --ignore-engines - name: Run i18n:pull script - run: yarn run i18n:pull + run: yarn --ignore-engines run i18n:pull env: TRANSIFEX_ORGANIZATION: ${{ secrets.TRANSIFEX_ORGANIZATION }} TRANSIFEX_PROJECT: ${{ secrets.TRANSIFEX_PROJECT }} diff --git a/electron/packager/index.js b/electron/packager/index.js index 32a5295a2..0f7fa249a 100644 --- a/electron/packager/index.js +++ b/electron/packager/index.js @@ -103,12 +103,12 @@ //-------------------------------------------------------------------------------------------------+ // Rebuild the extension with the copied `yarn.lock`. It is a must to use the same Theia versions. | //-------------------------------------------------------------------------------------------------+ - exec(`yarn --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, `Building the ${productName} application`); + exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)}`, `Building the ${productName} application`); //-------------------------------------------------------------------------------------------------------------------------+ // Test the application. With this approach, we cannot publish test results to GH Actions but save 6-10 minutes per builds | //-------------------------------------------------------------------------------------------------------------------------+ - exec(`yarn --network-timeout 1000000 --cwd ${path('..', workingCopy)} test`, `Testing the ${productName} application`); + exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', workingCopy)} test`, `Testing the ${productName} application`); // Collect all unused dependencies by the backend. We have to remove them from the electron app. // The `bundle.js` already contains everything we need for the frontend. @@ -176,8 +176,8 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()} //-------------------------------------------------------------------------------------------+ // Install all private and public dependencies for the electron application and build Theia. | //-------------------------------------------------------------------------------------------+ - exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies'); - exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`); + exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')}`, 'Installing dependencies'); + exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} build${isElectronPublish ? ':publish' : ''}`, `Building the ${productName} application`); //------------------------------------------------------------------------------+ // 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()} //-----------------------------------+ // Package the electron application. | //-----------------------------------+ - exec(`yarn --network-timeout 1000000 --cwd ${path('..', 'build')} package`, `Packaging your ${productName} application`); + exec(`yarn --ignore-engines --network-timeout 1000000 --cwd ${path('..', 'build')} package`, `Packaging your ${productName} application`); //-----------------------------------------------------------------------------------------------------+ // Copy to another folder. Azure does not support wildcard for `PublishBuildArtifacts@1.pathToPublish` |