Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down Expand Up @@ -55,6 +56,14 @@ jobs:
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
echo "old_version=$OLD_VERSION" >> $GITHUB_OUTPUT

- name: Verify release tag is available
run: |
git fetch --tags origin
if git rev-parse -q --verify "refs/tags/v${{ steps.bump.outputs.new_version }}" >/dev/null; then
echo "Release tag v${{ steps.bump.outputs.new_version }} already exists. Choose a higher target_version or version_type."
exit 1
fi

- name: Generate manifest.json from template
run: node scripts/generate-manifest.js
env:
Expand All @@ -81,8 +90,7 @@ jobs:
git add manifest.template.json package.json package-lock.json
git commit -m "chore: release version ${{ steps.bump.outputs.new_version }}"
git tag -a "v${{ steps.bump.outputs.new_version }}" -m "Release version ${{ steps.bump.outputs.new_version }}"
git push origin main
git push origin "v${{ steps.bump.outputs.new_version }}"
git push --atomic origin HEAD:main "v${{ steps.bump.outputs.new_version }}"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
3 changes: 2 additions & 1 deletion .omni/e42f8a19-untitled/memory.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- Selection capture is coordinated in `src/background/service-worker.ts`: popup sends `CAPTURE_SCREENSHOT`, service worker injects the selection overlay, then receives `SELECTION_COMPLETE` and crops via the offscreen document.
- Popup runtime message listeners must ignore unrelated messages synchronously; an async listener can interfere with offscreen `ADD_WATERMARK` responses while the popup is open.
- Extension badge count is maintained by background `updateExtensionBadge()` from IndexedDB asset count; popup-side deletes should send `REFRESH_BADGE`.
- Release workflow must check tag availability before pushing and use atomic main+tag push to avoid partial release state.

---
_Last system refresh: 2026-05-06 07:28 UTC_
_Last system refresh: 2026-05-06 07:49 UTC_
Loading