Hello!
I'm trying to use Bitbucket Pipelines to deploy my Nuxt.js based web app. Below there is my bitbucket pipelines config:
image: node
pipelines:
custom:
init:
- step:
caches:
- node
script:
- yarn install
- yarn build --spa
- echo "$(ls -la dist/)"
- ls
- step:
script:
- ls
And It is simplest as possible. It's installing all dependencies (yarn install) and using nuxt command yarn build --spa.
Yarn build --spa command is creating new dist folder and putting there build files. If dist folder were already existing script removes that folder and creates new dist folder. If I run this commands on my local machine I'm getting new dist folder filled with build files.
Whole steps are working fine, build step also, but finally there isn't any dist folder.

Most related topic on the internet that I've found is that: https://github.com/nuxt/nuxt.js/issues/5344 – but is more about docker image than bitbucket pipeline. Is there anything that I can fix in my config without creating new docker image?