Adobe has documentation about how we would use Pipeline secrets and ENV variables to use a Private Maven Repository.
Is there something similar for the FrontEnd Sites projects and NPM??
e.g, if in my package.json I had this..
"dependencies": {
"my-private-repo": "git+https://${GITHUB_PAT_KEY}@github.com/My-Organization/Private-REPO.git"
}
I have been sandboxing this, and found that:
In short, how do we use a private repo as a dependancy for our Sites theme where it would build using the pipeline?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Check if this helps https://www.netcentric.biz/insights/2020/08/private-repository-cloud-manager It has a well explained section on how you can use pipeline variables for private NPM dependencies.
Hope this helps.
Hi @david_dorr1 ,
Please make sure you have below configuration in pom file.
npm and node versions you can mention as per ypour project requirement.
ui-frontend module POM.xml
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>npm run prod</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run prod</arguments>
</configuration>
</execution>
</executions>
</plugin>
main pom.xml
<configuration>
<nodeVersion>v18.18.2</nodeVersion>
<npmVersion>9.8.1</npmVersion>
</configuration>
-Tarun
Hi @david_dorr1
Could you please check below if that helps
https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-23063
Check if this helps https://www.netcentric.biz/insights/2020/08/private-repository-cloud-manager It has a well explained section on how you can use pipeline variables for private NPM dependencies.
Hope this helps.
Views
Likes
Replies
Views
Like
Replies
Views
Likes
Replies