Forge + React App Bitbucket Pipeline error

Hello,
We created a forge custom UI app. It runs great on the local machine and using forge tunnel (deploys, installs) no errors.
We created a bitbucket pipeline to start implementing CI/CD and we find the following error during deploy.

Error: Resource main at: /opt/atlassian/pipelines/agent/build/static/hello-world/build not found

Our pipeline looks like this:

pipelines:
  default:
    - step:
        name: Check Code linting
        script:
          - cd static/hello-world
          - npm install
          - npm run build
          - cd ..
          - cd ..
          - npm install --global @forge/cli
          - forge settings set usage-analytics true
          - forge lint
        caches:
          - node
              
    - step:
        name: Deploy to Staging
        deployment: staging
        caches:
          - node
        script:
          - npm install
          - npm install --global @forge/cli
          - forge settings set usage-analytics true
          - forge deploy --verbose

How do we make it refer to the right path?
Thanks in advance,
Jerry

1 Like