Skip to content

Commit ffde83d

Browse files
committed
Releaseit faff
1 parent c324b14 commit ffde83d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.release-it.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@
1111
},
1212
"git": {
1313
"requireCleanWorkingDir": false,
14+
"requireBranch": "main",
1415
"tagName": "${version}",
16+
"_": "--atomic so a rejected branch update can't leave the tag pushed on its own; the tag is the deploy trigger",
17+
"pushArgs": ["--follow-tags", "--atomic"],
1518
"changelog": "npx auto-changelog --stdout --commit-limit false -u --template https://raw.githubusercontent.com/release-it/release-it/main/templates/changelog-compact.hbs"
1619
},
1720
"buildCommand": "yarn package:x64; yarn package:arm64",
1821
"hooks": {
22+
"_before-init": "release-it never fetches; a stale main makes the push non-fast-forward. Skipped in CI, which does its own checkout.",
23+
"before:init": "[ -n \"$CI\" ] || git pull --rebase --autostash origin main",
1924
"before:bump": "yarn declarations; yarn build:schemas",
2025
"_": "CI will remove the _ from both of the below lines",
2126
"_after:bump": "yarn package:x64; yarn package:arm64",

0 commit comments

Comments
 (0)