Skip to content

Commit c3bccdf

Browse files
committed
chore: prepare for release
- Add release-please workflow for automated version management - Configure AMO publishing with API credentials - Set up automated listing metadata - Configure to start from zero releases
1 parent 3bbf7d8 commit c3bccdf

4 files changed

Lines changed: 91 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: googleapis/release-please-action@v4
16+
id: release
17+
with:
18+
release-type: node
19+
extra-files: |
20+
src/manifest.json
21+
22+
- uses: actions/checkout@v4
23+
if: ${{ steps.release.outputs.release_created }}
24+
25+
- uses: actions/setup-node@v4
26+
if: ${{ steps.release.outputs.release_created }}
27+
with:
28+
node-version: 20
29+
cache: npm
30+
31+
- run: npm ci
32+
if: ${{ steps.release.outputs.release_created }}
33+
34+
- name: Unit tests
35+
if: ${{ steps.release.outputs.release_created }}
36+
run: npx vitest run
37+
38+
- name: Lint
39+
if: ${{ steps.release.outputs.release_created }}
40+
run: npx web-ext lint --source-dir=src
41+
42+
- name: Build
43+
if: ${{ steps.release.outputs.release_created }}
44+
run: npx web-ext build --source-dir=src --overwrite-dest
45+
46+
- name: Sign and submit to AMO
47+
if: ${{ steps.release.outputs.release_created }}
48+
run: npx web-ext sign --source-dir=src --channel=listed --amo-metadata=amo-metadata.json
49+
env:
50+
WEB_EXT_API_KEY: ${{ secrets.AMO_API_KEY }}
51+
WEB_EXT_API_SECRET: ${{ secrets.AMO_API_SECRET }}
52+
53+
- name: Upload to GitHub Release
54+
if: ${{ steps.release.outputs.release_created }}
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
run: gh release upload ${{ steps.release.outputs.tag_name }} web-ext-artifacts/*

.release-please-config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"release-type": "node",
3+
"extra-files": [
4+
{
5+
"type": "json",
6+
"path": "src/manifest.json",
7+
"jsonpath": "$.version"
8+
}
9+
],
10+
"packages": {
11+
".": {
12+
"changelog-sections": [
13+
{"type": "feat", "section": "Features"},
14+
{"type": "fix", "section": "Bug Fixes"},
15+
{"type": "chore", "section": "Miscellaneous", "hidden": false}
16+
]
17+
}
18+
}
19+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

amo-metadata.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"categories": {
3+
"firefox": ["tabs", "productivity"]
4+
},
5+
"summary": {
6+
"en-US": "Keep your browser tabs organized with inbox zero methodology"
7+
},
8+
"description": {
9+
"en-US": "# Tabs Zero\n\nBring inbox zero methodology to your browser tabs! Automatically close idle tabs, detect duplicates, and keep your browsing focused.\n\n## Features\n\n- **Auto-expire idle tabs** with configurable time thresholds (15 min to 30+ days)\n- **Smart duplicate detection** based on URL and title\n- **Protection for important tabs** (pinned, active, playing audio)\n- **Manual tab management** from popup (close individual tabs, switch to tabs)\n- **Tree Style Tab integration** for advanced tab management\n- **Detailed statistics** with helpful explanations\n\n## Perfect For\n\n- Heavy tab users who accumulate dozens of open tabs\n- Researchers and developers who need organized browsing\n- Anyone wanting to reduce memory usage and browser clutter\n- Users of inbox zero methodology\n\n## Privacy\n\nTabs Zero processes all data locally. No data is sent to external servers."
10+
},
11+
"tags": ["tabs", "productivity", "organization", "memory", "cleanup"],
12+
"homepage": "https://github.com/seriousben/tabs-zero",
13+
"support_url": "https://github.com/seriousben/tabs-zero/issues"
14+
}

0 commit comments

Comments
 (0)