From 6b86a888cb7384b051326a5dc2e54114502f0aed Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 1 Oct 2020 02:07:01 +0300 Subject: [PATCH] chore(CircleCI): fix `deploy-docs` job Since #17039, our docs Firebase functions' `package.json` specifies a `node` engine version. This is required for configuring which version of Node.js should Firebase use to execute the functions. However, since Firebase is using an older version of Node.js than the one we use to build the AngularJS project, yarn would error due to incompatible Node.js engine versions ([example failure][1]). This commit avoids the error by running yarn with the `--ignore-engines` option. [1]: https://app.circleci.com/pipelines/github/angular/angular.js/214/ workflows/ad2e9baf-7249-467d-bc71-bd98e6cd922c/jobs/2247 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ac3538b27..a5730630c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -387,7 +387,7 @@ jobs: - skip_unless_stable_branch # Install dependencies for Firebase functions to prevent parsing errors during deployment # See https://github.com/angular/angular.js/pull/16453 - - run: yarn --cwd scripts/docs.angularjs.org-firebase/functions + - run: yarn --cwd scripts/docs.angularjs.org-firebase/functions --ignore-engines - run: yarn firebase deploy --message "Commit:\ $CI_COMMIT" --non-interactive --only hosting --project "docs-angularjs-org-9p2" --token "$FIREBASE_TOKEN" workflows: