From 5993e6a5275d2c0685ae1a88eb399d4c61ed0062 Mon Sep 17 00:00:00 2001 From: Shane <6071159+smashedr@users.noreply.github.com> Date: Thu, 11 Jun 2026 22:38:15 -0700 Subject: [PATCH] Fix Draft/Release --- .github/workflows/draft.yaml | 2 +- .github/workflows/release.yaml | 4 ++-- .github/workflows/test.yaml | 4 +--- AGENTS.md | 19 +++++++++++++++++++ 4 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 AGENTS.md diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml index d311789..b182bc7 100644 --- a/.github/workflows/draft.yaml +++ b/.github/workflows/draft.yaml @@ -39,7 +39,7 @@ jobs: prerelease: false prefix: v previous_tag_name: ${{ steps.tag.outputs.name }} - notes_strip_prefix: true + notes_prefix: "${{ github.ref_name }}-" - name: "Process Release Draft URL" run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dc97eb3..1d1e9f4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -82,18 +82,18 @@ jobs: - name: "Create Tracking Tag" uses: cssnr/update-version-tags-action@v2 with: - prefix: "" major: false minor: false release: true + prefix: "${{ github.event.release.target_commitish }}-" - name: "Update Version Tags" id: tags uses: cssnr/update-version-tags-action@v2 with: ref: refs/heads/${{ env.release }} - prefix: "v" release: true + prefix: "v" force: true - name: "Update Release Notes" diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6cb6840..95fa209 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,7 +1,5 @@ name: "Test" -# actions-up-ignore-file - on: workflow_dispatch: #schedule: @@ -55,7 +53,7 @@ jobs: with: node-version: 24 - - name: "Install & Build" + - name: "Install" if: ${{ !github.event.act }} run: | npm ci diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..cb8455e --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,19 @@ +# Agent Guide + +Before answering any question that involves facts about ANYTHING, you MUST output at least one Read, WebFetch, or WebSearch tool call. +If your first output is text instead of a tool call, you have failed. + +GitHub Action - [action.yml](action.yml) + +- `src/` is the source directory (single `index.ts` file) +- `dist/` is built by rollup, in `.gitignore`, and pushed to the `release` branch on publish + +## Commands + +ALWAYS use the `npm run *` command + +| Command | Purpose | +| ------------------ | --------------------------------------- | +| `npm run build` | Rollup `src/index.ts` → `dist/index.js` | +| `npm run lint` | ESLint on `src/` | +| `npm run prettier` | ALWAYS RUN AFTER EDITING FILES |