From a5f9ffe34af3ba59e927de41273f5c1fe2ab55bc Mon Sep 17 00:00:00 2001 From: Andrea Frigido <103675+frisoft@users.noreply.github.com> Date: Mon, 22 Jun 2026 21:45:41 +0100 Subject: [PATCH] docs: update release skill instructions and flake.lock --- .agents/skills/release/SKILL.md | 19 +++++++++++++------ flake.lock | 6 +++--- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md index 8f7c8f8..5c9f328 100644 --- a/.agents/skills/release/SKILL.md +++ b/.agents/skills/release/SKILL.md @@ -11,8 +11,9 @@ This skill creates a git tag to trigger the release workflow. Before using this skill, you must: 1. Bump the version in `Cargo.toml` -2. Update `CHANGELOG.md` with the new version and release notes -3. Commit and push those changes to the main branch +2. Build the project to get the version to `Cargo.lock` +3. Update `CHANGELOG.md` with the new version and release notes +4. Commit and push those changes to the main branch ## When to use @@ -22,20 +23,26 @@ Use this skill when you want to release a new version to GitHub and crates.io. When this skill is invoked, perform the following steps: -### Step 1: Get the version +### Step 1: Verify that everything is committed and pushed +Verity that you are in the main branch and that every change is pushed to Github. + +### Step 2: Get the version Run `grep -m1 '^version' Cargo.toml` to get the current version from Cargo.toml. -### Step 2: Create the version tag +### Step 3: Verify the cersion in Cargo.lock +Verify that the same version is in Cargo.lock + +### Step 4: Create the version tag Create a git tag with the version from Step 1: - Format: `v` (e.g., `v1.0.14`) - Run `git tag v` -### Step 3: Push the tag to remote +### Step 5: Push the tag to remote Push the tag to the remote repository: - Run `git push origin v` - This triggers the release workflow in `.github/workflows/release.yml` -### Step 4: Publish to crates.io +### Step 6: Publish to crates.io Publish the package to crates.io: - Run `cargo publish` diff --git a/flake.lock b/flake.lock index ae76b78..225d4a9 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1777954456, - "narHash": "sha256-hGdgeU2Nk87RAuZyYjyDjFL6LK7dAZN5RE9+hrDTkDU=", + "lastModified": 1781577229, + "narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "549bd84d6279f9852cae6225e372cc67fb91a4c1", + "rev": "567a49d1913ce81ac6e9582e3553dd90a955875f", "type": "github" }, "original": {