This directory contains scripts for managing SightEdit releases and versions.
Interactive release script for creating production releases.
npm run release
# or
node scripts/release.jsFeatures:
- Interactive version selection
- Automatic testing and building
- Changelog generation
- NPM publishing via Lerna
- GitHub release creation
- Git tagging and pushing
- Dry run support
Script for creating development and pre-release versions.
# Canary release (automatic versioning)
npm run release:canary
# or
node scripts/dev-release.js canary
# Alpha release
npm run release:alpha
# Beta release
npm run release:beta
# RC release
node scripts/dev-release.js rc
# Dev release (branch-based)
node scripts/dev-release.js dev
# Experimental release
node scripts/dev-release.js experimentalVersion formats:
- Canary:
1.0.0-canary.2024-01-01T12-00-00.abc123 - Alpha/Beta/RC:
1.0.0-alpha.0,1.0.0-beta.1,1.0.0-rc.2 - Dev:
1.0.0-dev.feature-branch.abc123 - Experimental:
1.0.0-experimental.abc123
Utility for checking version status across packages.
# Basic version check
npm run version:check
# Show all published versions
node scripts/version-check.js --all
# Check CDN availability
node scripts/version-check.js --cdn- Ensure you're on the main branch
- Run
npm run release - Choose version type (patch/minor/major)
- Confirm release details
- Script will:
- Run tests
- Build all packages
- Update versions
- Generate changelog
- Publish to NPM
- Create GitHub release
- Deploy to CDN
- Run
npm run release:alpha(or beta/rc) - Script will auto-increment the pre-release number
- Publishes with
nexttag on NPM
- Automatically triggered on every push to main
- Can be manually run with
npm run release:canary - Published with
canarytag on NPM - Includes timestamp and commit hash in version
latest: Production releasesnext: Pre-releases (alpha, beta, rc)canary: Automatic builds from maindev: Development buildsexperimental: Experimental features
For CI/CD:
NPM_TOKEN: NPM authentication tokenGITHUB_TOKEN: GitHub authentication tokenAWS_ACCESS_KEY_ID: AWS credentials for CDNAWS_SECRET_ACCESS_KEY: AWS credentials for CDNCLOUDFRONT_DISTRIBUTION_ID: CloudFront distribution IDDISCORD_WEBHOOK: Discord webhook for notifications
npm run version:syncnpm run version:check- Check NPM authentication:
npm whoami - Ensure you have publish permissions
- Check for version conflicts
- Ensure working directory is clean
- Check you're on the correct branch
- Verify you have push permissions
- Run
npm run cleanandnpm install - Check for TypeScript errors:
npm run build - Ensure all tests pass:
npm test
