Release Commands
Your NewTab includes three release commands for different version bump types:The default
bun run release command performs a patch version bump. Use this for bug fixes and small updates.What the Release Script Does
When you run a release command, the following steps are executed automatically:Version bump
Updates the version number in
package.json according to the specified bump type:- Patch: Increments the last digit (bug fixes)
- Minor: Increments the middle digit, resets patch to 0 (new features)
- Major: Increments the first digit, resets minor and patch to 0 (breaking changes)
Build the extension
Runs
bun run build to create a production build:- Clears previous builds
- Compiles Vue components and TypeScript
- Generates optimized assets
- Creates browser manifest
Pack distribution files
Runs
bun run pack to create all distribution formats:extension.zip- For Chrome Web Storeextension.crx- For Chrome manual installationextension.xpi- For Firefox Add-ons
Git commit and tag
Creates a git commit and tag:
- Stages
package.jsonchanges - Commits with message:
chore: bump version to v{version} - Creates a git tag:
v{version}
Version Bump Guidelines
Follow Semantic Versioning principles:Patch Release (0.0.X)
Patch Release (0.0.X)
Use for:
- Bug fixes
- Performance improvements
- Documentation updates
- Minor UI tweaks
Minor Release (0.X.0)
Minor Release (0.X.0)
Use for:
- New features
- New quote categories
- UI enhancements
- Non-breaking API changes
Major Release (X.0.0)
Major Release (X.0.0)
Use for:
- Breaking changes
- Major redesigns
- Significant architectural changes
- Removal of features
Pre-Release Checklist
Before running a release command:Manual Release Steps
If you prefer to release manually or need to troubleshoot:Publishing to Extension Stores
After creating a release, upload the distribution files to extension stores:Chrome Web Store
- Go to Chrome Web Store Developer Dashboard
- Select your extension
- Click Package → Upload new package
- Upload
extension.zip - Fill in any required metadata
- Click Submit for review
Firefox Add-ons
- Go to Firefox Add-on Developer Hub
- Select your extension
- Click Upload New Version
- Upload
extension.xpi - Complete the submission form
- Submit for review
Review times vary by platform. Chrome Web Store typically reviews within a few hours to days, while Firefox can take a few days to a week.
Release Script Source
The release automation is implemented inscripts/release.ts. It:
- Validates the bump type argument
- Reads and updates
package.json - Executes build and pack commands
- Creates git commits and tags
- Pushes to the remote repository