Deep_Dev
article thumbnail

 

 

 

 

๐Ÿ“Œ Sematic versioning


GitHub๋ฅผ ์ฐฝ์—…ํ•˜์‹  ๋ถ„์ด ๊ธฐ์กด Versioning์˜ ๋ฌธ์ œ์ ์„ ํ•ด๊ฒฐํ•˜๊ณ ์ž ๋‚˜์˜จ ๊ฒƒ

 

Major . Minor . Patch


์ผ๋ฐ˜์ ์ธ ๊ทœ์น™

 

 1. ๋ฒ„์ „ ๋ฒˆํ˜ธ๋Š” Major, Minor, Patch ํ˜•ํƒœ๋กœ ๋ฐฐํฌํ•˜๊ณ , Major, Minor, Patch๋Š” ๊ฐ๊ฐ ์ž์—ฐ์ˆ˜์ด๊ณ  ์ ˆ๋Œ€ ์•ž์— 0์ด ๋ถ™์–ด์„œ๋Š” ์•ˆ๋œ๋‹ค.

 2. ๊ฐ ๋ฒˆํ˜ธ์˜ ์ˆ˜๋Š” ํ•ญ์ƒ ์ฆ๊ฐ€ํ•ด์•ผ ํ•œ๋‹ค.

 3. ํŠน์ • ๋ฒ„์ „์œผ๋กœ ํŒจํ‚ค์ง€๋ฅผ ๋ฐฐํฌํ•˜๊ณ  ๋‚˜๋ฉด, ๊ทธ ๋ฒ„์ „์˜ ๋‚ด์šฉ์€ ์ ˆ๋Œ€ ๋ณ€๊ฒฝํ•˜์ง€ ๋ง์•„์•ผํ•œ๋‹ค. ๋ณ€๊ฒฝ๋ถ„์ด ์žˆ๋‹ค๋ฉด ๋ฐ˜๋“œ์‹œ ์ƒˆ๋กœ์šด ๋ฒ„์ „์œผ๋กœ ๋ฐฐํฌํ•˜๋„๋ก ํ•œ๋‹ค.

 4. Major ๋ฒ„์ „์ด ๋ณ€๊ฒฝ๋  ๋•Œ, Minor, Path๋Š” 0์œผ๋กœ ์ดˆ๊ธฐํ™”ํ•œ๋‹ค.

 5. Minor ๋ฒ„์ „์ด ๋ณ€๊ฒฝ๋  ๋•Œ, Path๋Š” 0์œผ๋กœ ์ดˆ๊ธฐํ™”ํ•œ๋‹ค.

 

 

Major ๋ฒ„์ „ ์ฆ๊ฐ€

  • ํ•˜์œ„ ๋ฒ„์ „๊ณผ ํ˜ธํ™˜๋˜์ง€ ์•Š๋Š” ๋ณ€ํ™”๊ฐ€ ์ƒ๊ฒผ์„ ๋•Œ
  • ๋Œ€๋Œ€์ ์ธ ๋ณ€ํ™”๊ฐ€ ์ผ์–ด๋‚ฌ์„ ๋•Œ
  • ํด๋ผ์ด์–ธํŠธ๊ฐ€ 1.0.0 ๋ฒ„์ „์˜ API ์ ‘๊ทผ ๋ฐฉ์‹์œผ๋กœ 2.0.0 ๋ฒ„์ „์— ์ ‘์†ํ•  ์ˆ˜ ์—†์„ ๋•Œ

 

Minor ๋ฒ„์ „ ์ฆ๊ฐ€

  • ํ•˜์œ„ ๋ฒ„์ „๊ณผ ํ˜ธํ™˜์ด ๋˜๋ฉด์„œ, ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์ด ์ถ”๊ฐ€ ๋  ๋•Œ
  • ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ์ด ์ถ”๊ฐ€๋œ API๊ฐ€ ๋‚˜์™”์ง€๋งŒ, ๊ธฐ์กด์˜ ๊ณต๊ฐœ๋œ API๊ฐ€ ํ•˜์œ„ ํ˜ธํ™˜๋˜๊ณ  ์žˆ์„ ๋•Œ
  • ๊ธฐ์กด์˜ ๊ธฐ๋Šฅ์ด ๋ณ€๊ฒฝ๋˜๊ฑฐ๋‚˜ ์‚ฌ์šฉ๋ฐฉ๋ฒ•์ด ๋ณ€๊ฒฝ ๋˜์—ˆ์„ ๋•Œ

 

Path ๋ฒ„์ „ ์ฆ๊ฐ€

  • ๋ฒ„๊ทธ ์ˆ˜์ •
  • ๊ธฐ์กด ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์•Œ์•„์ฐจ๋ฆฌ์ง€ ๋ชปํ•  ์ •๋„์˜ ์ž‘์€ ๋ณ€ํ™”๊ฐ€ ์žˆ์„ ๋•Œ
  • ์„œ๋ฒ„ ์ฝ”๋“œ ๋‚ด๋ถ€์ ์œผ๋กœ ์†Œ์Šค๊ฐ€ ์ˆ˜์ •๋˜์—ˆ์„ ๋•Œ
  • ๋‹น์—ฐํ•œ ์–˜๊ธฐ๊ฒ ์ง€๋งŒ, ์ด ๋ชจ๋“  ๊ฒƒ๋“ค์ด ํ•˜์œ„ ๋ฒ„์ „๊ณผ ํ˜ธํ™˜๋  ๋•Œ

 

 


 

๐Ÿ’ก ์š”์•ฝ 

 

Major -> ๋‹ค ๋ฐ”๋€œ

Minor -> ๊ธฐ๋Šฅ์ถ”๊ฐ€์™€ ์กฐ๊ธˆ ๋ฐ”๋€œ

Patch -> ๋ฒ„๊ทธ ์ˆ˜์ •

 

 

 

ํ™ˆํŽ˜์ด์ง€

 

https://semver.org/lang/ko/

 

์œ ์˜์  ๋ฒ„์ „ 2.0.0

Semantic Versioning spec and website

semver.org