Invalid or missing pipeline section

workspace:
base: /drone
path: app

pipeline:
  build:
when:
  event: push
  branch: develop
image: node:carbon-alpine
commands:
  - npm install
  - npm test

  gcr:
image: plugins/gcr
repo: gcr.io/lhi-ms/storelocatorbff
tags: ["${DRONE_COMMIT_SHA}", "latest"]
secrets: [google_credential]

the above pipeline throws me

Invalid or missing pipeline section

Any hint?

Found the issue. drone yaml should have an extension .yml instead of .yaml