@nitra/cursor 12.0.2 → 12.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [12.0.3] - 2026-06-18
4
+
5
+ ### Fixed
6
+
7
+ - release: анотовані теги пушаться на origin
8
+
3
9
  ## [12.0.2] - 2026-06-18
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
4
4
  "description": "CLI для завантаження cursor-правил (префікс n-) у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",
@@ -93,9 +93,10 @@ async function pushReleaseWithRetry(runGit, tags, attempts = 5) {
93
93
  await runGit(['rebase', '--abort'])
94
94
  throw new Error(`release: push відхилено і rebase на ${upstream} дав конфлікт — розв'яжи вручну`)
95
95
  }
96
- // після rebase хеш release-коміту змінився → пересуваємо теги на новий HEAD
96
+ // після rebase хеш release-коміту змінився → пересуваємо АНОТОВАНІ теги на новий HEAD
97
+ // (force + annotated, бо --follow-tags несе лише анотовані теги, а HEAD уже інший)
97
98
  for (const tag of tags) {
98
- await runGit(['tag', '-f', tag])
99
+ await runGit(['tag', '-f', '-a', tag, '-m', tag])
99
100
  }
100
101
  }
101
102
  throw new Error(
@@ -148,8 +149,11 @@ export async function release(opts = {}) {
148
149
  if (committed === null) {
149
150
  throw new Error('release: git commit не вдався — теги та push скасовано')
150
151
  }
152
+ // АНОТОВАНІ теги (`-a -m`), бо `git push --follow-tags` доправляє на remote лише
153
+ // анотовані теги; легкі (`git tag <name>`) лишалися б локальними. `-m` обов'язкове
154
+ // в non-interactive CI, інакше git відкрив би редактор; повідомлення — сам `<name>@<version>`.
151
155
  for (const tag of tags) {
152
- await runGit(['tag', tag])
156
+ await runGit(['tag', '-a', tag, '-m', tag])
153
157
  }
154
158
  await pushReleaseWithRetry(runGit, tags)
155
159
  }