withastro/action

Monorepo support

Opened this issue · 4 comments

Maybe I am doing something wrong, but I cannot for the life of me deploy from a yarn workspaces monorepo.

I added the base:

// astro.config.msj
{
 base: '/docs',
}

Screenshot 2023-12-09 at 9 35 13 AM

It won't build properly because it won't build my other dependencies.

So if I remove the base, it fails because it can't find the docs/dist directory.

I need a way to build from the root and deploy from a path, but it doesn't seem as though one is exposed.

I have same problem with turborepo. Why this action doesn't have additional arguments for this?

Earlier versions of this action included many options to configure all of the inputs and outputs, but we ended up with many confusing, conflicting configuration options.

If anyone has ideas about options we could add to better support monorepos, please let us know!


Custom build pipelines with more complex requirements can always accomplish the same thing as this action by adding an additional step after the build runs:

    - name: Upload Pages Artifact
      uses: actions/upload-pages-artifact@v3
      with:
        path: "./packages/www/dist/"

Awesome! That is probably the best course of action for now.