Issues with my first Orb

Hello folks,

I’m beginner on CircleCI and I’m struggling to make an private orb work.
Were is the scenario:

I’ve my private orb with a simple command:

commands:
    lambda_deploy:
        description: |
            This command deploys a lambda function
        steps:
            - run:
                command: npm install
                name: Install dependecies

And I’m trying to reference this orb on another repository/workflow

version: 2.1

orbs:
  myorb: xxxxxx/yyyyyyy@1.0.8

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
  
  build:
    docker:
      - image: cimg/node:current
    steps:
      - checkout
      - myorb/build_lambda
      
workflows:
  Pipeline:    
    jobs:
      - build

Every run I got this error:

  • Error calling workflow: 'Pipeline' Error calling job: 'build' Cannot find a definition for command named myorb/build_lambda

I’ve read lots of documentation but I can’t figure out why the workflow can’t find the definition of the command of my orb.

Thanks in advance

  • If you switch the step to myorb/lambda_deploy does it work?
  • Have you tried % circleci config validate --org-slug github/yourorg (adjust to your org slug) on the config locally with the CLI?