Skip to content

Instantly share code, notes, and snippets.

@Xunnamius
Last active November 10, 2024 03:46
Show Gist options
  • Save Xunnamius/0787fde8dcca1a22debbaed94f0a873c to your computer and use it in GitHub Desktop.
Save Xunnamius/0787fde8dcca1a22debbaed94f0a873c to your computer and use it in GitHub Desktop.
Takes the old-style "v$version" tags and creates aliases to the same commits using monorepo-safe scoped tags (e.g. "my-package@$version" and "@my/package@$version"
#! /bin/sh
# Note that gh! is an alias for gh
# v1.0.0 is the old-style tag, @package/[email protected] is the monorepo-safe version
git tag -m 'alias => v1.0.0' '@package/[email protected]' 'v1.0.0^{}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment