title: yaml: did not find expected key
body: <blockquote>
    <ul>
    <li>Error parsing config file: yaml: line 22: did not find expected key</li>
    <li>Cannot find a job named <code>build</code> to run in the <code>jobs:</code> section of your configuration file.</li>
    </ul>
  </blockquote>
  
  <p>I got those errors, but I'm really new to yaml so I can't really find reaons why It's not working. any ideas? Some says It might have extra spaces or something, but I can't really find it.</p>
  
  <p><strong>yaml file</strong></p>
  
  <pre><code>defaults: &amp;defaults:
    - checkout
    - restore_cache:
      keys:
        - v1-dependencies-{{ checksum "package.json" }}
        - v1-dependencies-
    - run: npm install
    - save_cache:
        paths:
          - node_modules
        key: v1-dependencies-{{ checksum "package.json" }}
  
  version: 2
  jobs:
    build:
      docker:
        - image: circleci/node:10.3.0
  
      working_directory: ~/repo
  
      steps:
        &lt;&lt;: *defaults   // &lt;&lt; here
        - run: npm run test
        - run: npm run build
    deploy:
      docker:
        - image: circleci/node:10.3.0
  
        working_directory: ~/repo
  
      steps:
        &lt;&lt;: *defaults
        - run:
            name: Deploy app scripts to AWS S3
            command: npm run update-app
  
  workflows:
    version: 2
    build-deploy:
      jobs:
        - build
        - deploy:
            requires:
              - build
            filters:
              branches:
                only: master
  </code></pre>