Like this:
script:
- yarn install
- pipe: sonarsource/sonarcloud-scan:2.0.0
variables:
SONAR_SCANNER_OPTS: -Xmx4096m
EXTRA_ARGS: -Dsonar.javascript.node.maxspace=8192 -Dsonar.sourceEncoding=UTF-8
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6