Azure / Azure/static-web-apps

API build is using Npm, instead of Yarn

Open
#1,048 1 comment 0 reactions 1 assignee Claimed by @vivekjilla View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Oryx is not picking up Yarn from package.json while building API.

**To Reproduce**
Steps to reproduce the behavior:
1. I am trying to deploy my open-source project on SWA platform.
2. The project is a Yarn workspaces based monorepo and the app is a Next.js app.
3. The workflow is listed here: https://github.com/codelitdev/courselit/blob/workspace-based-resolution/.github/workflows/azure-static-web-apps-gray-meadow-012ce1110.yml
4. The App gets build correctly but the API is not picking up Yarn as the package manager. It is using NPM only.

GitHub Action Workflow Pipeline: https://github.com/codelitdev/courselit/blob/workspace-based-resolution/.github/workflows/azure-static-web-apps-gray-meadow-012ce1110.yml
GitHub Action run result: https://github.com/codelitdev/courselit/actions/runs/3952346891/jobs/6767308358

**Expected behavior**
The API should use Yarn instead of NPM.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.