# Release Tag

> Use after a release branch has been merged into main - fetches latest main, creates an annotated git tag, and pushes it to trigger the release workflow. Use when this capability is needed.

- Skill: `tomevault-io/release-tag` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/release-tag`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/release-tag/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/release-tag

---


# release-tag

## Overview

Completes the release by fetching the latest main, creating an annotated git tag, and pushing it to trigger the `.github/workflows/release.yml` deploy pipeline.

Run this after the release branch has been merged into main (i.e., after `/release-branch` completes and the merge is confirmed).

---

## Workflow

### 1. Fetch and switch to latest main

```bash
git checkout main
git pull origin main
```

### 2. Determine the version to tag

Read the current version from package.json:

```bash
node -p "require('./package.json').version"
# Example output: 2.5.0
NEW_VERSION=<version>
```

### 3. Create git tag

```bash
git tag -a v<NEW_VERSION> -m "Release v<NEW_VERSION>"
```

### 4. Push tag (deploy trigger)

```bash
git push origin v<NEW_VERSION>
```

Pushing the tag triggers the `.github/workflows/release.yml` workflow which runs the full release pipeline (build, publish).

---

## Important Notes

- Tags must use the `v` prefix (e.g., `v2.5.0`).
- Tags are applied to the `main` branch only.
- If `npm publish` is applicable for this project, the `.github/workflows/release.yml` workflow handles it automatically on tag push.

---
> Source: [gendosu/agkan](https://github.com/gendosu/agkan) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

