# CND vs NPM vs git

**URL:** <https://devforum.okta.com/t/cnd-vs-npm-vs-git/12144>\
**Category:** Questions\
**Created:** [December 15, 2020, 2:27pm UTC](https://devforum.okta.com/t/cnd-vs-npm-vs-git/12144 "2020-12-15T14:27:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMishorich](https://avatars.discourse-cdn.com/v4/letter/p/3d9bf3/32.png) [@PMishorich](https://devforum.okta.com/u/PMishorich)\
**Post date:** [December 15, 2020, 2:27pm UTC](https://devforum.okta.com/t/cnd-vs-npm-vs-git/12144/1 "2020-12-15T14:27:17Z")

</div>

Is there a mapping from git branch version to npm version to versions stored on the CDN?

Is [https://global.oktacdn.com/okta-signin-widget/5.0.0/js/okta-sign-in.js](https://global.oktacdn.com/okta-signin-widget/5.0.0/js/okta-sign-in.js)  
the same as  
npm install @okta/okta-signin-widget@5.0.0 --save  
git clone -b 5.0 [https://github.com/okta/okta-signin-widget.git](https://github.com/okta/okta-signin-widget.git)

does look like npm has ‘5.0.0’, ‘5.0.1’, ‘5.0.2’  
and the CDN seems to match with those options available as well,  
while git only has that 5.0 branch How are versions labeled?

---

<div class="post-metadata">

**Author:** ![mraible](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/mraible/32/37_2.png) [@mraible](https://devforum.okta.com/u/mraible)\
**Post date:** [December 15, 2020, 10:07pm UTC](https://devforum.okta.com/t/cnd-vs-npm-vs-git/12144/2 "2020-12-15T22:07:20Z")

</div>

I talked to engineering about this today. Below is their response:

> Our git branches reflect the minor versions only, which are simply updated when new patch versions are released. (so 5.0 branch represents the latest in the 5.0.x series). Each patch release should be tagged in the git repo but doesn’t get a branch.
> 
> Also, the main branch represents the current minor version - it doesn’t get a separate branch until the next minor version is released.
> 
> This has been in migration for the past few months, so not all of the JS repos follow this pattern yet.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 25, 2024, 11:49pm UTC](https://devforum.okta.com/t/cnd-vs-npm-vs-git/12144/3 "2024-01-25T23:49:24Z")

</div>

Closed on January 25, 2024, 11:49pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
