patryk0493
patryk0493

Reputation: 15

NPM package sharing

I am currently using Azure DevOps for the CI / CD of my React component on the npmjs platform. I am currently developing an extended version of my basic application package. How do I share my npm package with my clients? I want to be able to grant permission to use versions to groups / individual programmers in the easiest way. Any solutions?

Thanks!

Upvotes: 0

Views: 177

Answers (1)

LoLance
LoLance

Reputation: 28126

How do I share my npm package with my clients? I want to be able to grant permission to use versions to groups / individual programmers in the easiest way. Any solutions?

Assuming you already have a feed to host the npm package, if not, create one and publish your package to this feed.

1.You can create a custom UserGroup in Project Settings => Permissions, use this group to group those users you want to grant permission to.

2.Go Artifacts => Feed => Feed settings to set the permission, add the UserGroup/individual programmers to the list. It depends on you that which role permission they can be granted, about feed permissions check this topic.

enter image description here

3.Now the users in that group or the individual programmers you add to the list can access the package within the npm feed. So that can follow this document to set up their .npmrc file, after that they can easily fetch the package from private npm feed using npm install command.

Note: If you want to limit the UserGroup/individual programmers' permissions (Only give them permission to read the npm package? ). You can consider customizing the related settings in Project Settings=>Permissions and repos settings.

Upvotes: 1

Related Questions