Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
486 stars 314 forks source link

NPM Run Publish not working when we try to run the code through Yaml Pipeline #2032

Open Madhumathi1017 opened 1 year ago

Madhumathi1017 commented 1 year ago

Bug description

npm run start and npm run publish is not picking up package.json when we try to run it through yaml pipeline.

Node version used:14.21 NPM Version :6.48

We are using this code for last two years. Currently we decided to merge the latest changes.So when we took the latest code and run the pipeline to publish its not working

Reproduction steps

  1. Create a yaml pipeline to deploy the code in static website.
  2. NPm Run Publish istaking long time and build fails without any exception getting logged. 3.We are getting timeout exception from the pipline.
  3. Same code with same npm and node version working from command prompt.

Expected behavior

NPM run publish has to publish the website in same way as that of local

Is your portal managed or self-hosted? Self-hosted

Release tag or commit SHA (if using self-hosted version)

latest

API Management service name

[e.g., contoso-api]

Environment

Additional context

Attached Yaml for reference DeploymentTemplate.txt

ghost commented 1 year ago

@Madhumathi1017, thank you for opening this issue. We will triage it within the next few business days.