惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point Blog

drew's dev blog

Hunting a production-only proxy bug in SvelteKit Artisanal Handcrafted Git Repositories Everything you need to know about Python 3.13 – JIT and GIL went up the hill How Postgres stores oversized values – let's raise a TOAST How Postgres stores data on disk – this one's a page turner Comtrade QuEST Rust Wrapper Dotfiles How long is a cucumber? 🥒 Jekyll KaTeX Block Using make and latexmk for easy LaTeX compilation Calculating the overlap of aerial photos Custom Jekyll plugins with GitHub Pages Calculating meters per pixel from aerial photographs Proper line numbers with Jekyll Compiling zsh without root Coding cheatsheet
Bumper
Drew Silcock · 2024-07-15 · via drew's dev blog

· 2 min read ·0

About

Bumper is a version bumper that I wrote because I was fed up of having to manually update the versions and do all the commits and branches and tags and everything. None of the other version bumpers (of which there are many) do exactly what I wanted, so I wrote my own.

Assumptions

Bumper is really useful if you are following certain key assumptions:

  • You are using git flow.
  • You use main and dev as the primary and development branches (although this could be easily changed).
  • You do deployments by tagging on main.
  • You use GitLab / GitHub for creating releases.
  • You use a standard format for changelogs that matches the same that I use.

Usage

Install with git install github.com/drewsilcock/bumper@latest, cd into your project directory and just run bumper (presuming GOBIN is in your PATH).

It’ll prompt you for anything it needs and will handle the rest.

Note: Bumper will fail if you do not match the specific criteria that I’ve outlined above and additional requirements (like ensuring you have no local uncommitted changes). There is currently no “rolling-back” feature, so if it fails mid-way through you have to manually discard any changes and reset the branch.