Creating and publishing private packages to jfrog artifactory

Raja Ram T
1 min readAug 20, 2020

--

Publishing npm packages with Artifactory

I’m writing a very short article for the private npm package publish to artifactory.

Initially Set up the Artifactory to the npm virtual registry

Once set up Virtual npm, Follow the steps below.

1) Select “Artifacts” from the left menu

2) Select the “Set Me Up” link on the upper right.

3) Select ‘npm’ for the Tool drop-down, ‘{{Your Created Virtual Repository}}’ for the Repository drop-down.

4) Click on Generate npm Settings

5) Set the default npm registry with an Artifactory npm repository

npm config set registry https://{{YOUR-URL}}/artifactory/api/npm/{{Your Created Virtual Repository}}/

6) Copy the “Using basic authentication” and paste the data into the

~/.npmrc file (in Windows %USERPROFILE%/.npmrc)

7) Open your package.json file add publishConfig

“publishConfig”:{“registry”:”https://{{YOUR-URL}}/artifactory/api/npm/{{Your Created Virtual Repository}}/”}

8) publish the package

npm publish

Few other useful npm links

For npmjs.com
https://docs.npmjs.com/creating-and-publishing-an-org-scoped-package

For Jenkins Artifactory Plug-in

https://www.jfrog.com/confluence/display/JFROG/Jenkins+Artifactory+Plug-in

Bamboo Artifactory Plug-in

https://www.jfrog.com/confluence/display/JFROG/Bamboo+Artifactory+Plug-in

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Raja Ram T
Raja Ram T

Written by Raja Ram T

I’m a Technical Lead Based in Hyderabad, India. I spend every day enthusiastically learning new technologies.

No responses yet

Write a response