-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrelease.ps1
More file actions
29 lines (22 loc) · 1.21 KB
/
release.ps1
File metadata and controls
29 lines (22 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# PowerShell Release Script for Interzept Chrome Extension
# Exit on any error
$ErrorActionPreference = "Stop"
# Get the current version from package.json
$packageJson = Get-Content -Path "package.json" -Raw | ConvertFrom-Json
$version = $packageJson.version
Write-Host "Creating release for version $version..." -ForegroundColor Green
# Create a new git tag with the version
git tag -a "v$version" -m "Release version $version"
# Push the new tag to the remote repository
git push origin "v$version"
# Create GitHub release if gh CLI is available
try {
gh --version | Out-Null
gh release create "v$version" --title "Release v$version" --notes "Release version $version with updated Lucide React icons"
Write-Host "GitHub release created successfully!" -ForegroundColor Green
Write-Host "Note: Download the source code from GitHub and use the repository folder directly for Chrome extension import." -ForegroundColor Cyan
} catch {
Write-Host "GitHub CLI not available. Please manually create the release on GitHub." -ForegroundColor Yellow
Write-Host "Use the repository folder directly for Chrome extension import: $PWD" -ForegroundColor Cyan
}
Write-Host "Release process completed!" -ForegroundColor Green