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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user