-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce96557
commit 02e3eb9
Showing
4 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Source | ||
src/ | ||
examples/ | ||
tests/ | ||
|
||
# Development files | ||
.github/ | ||
.vscode/ | ||
.idea/ | ||
.git/ | ||
.gitignore | ||
.npmignore | ||
.env* | ||
jest.config.js | ||
tsconfig.json | ||
.eslintrc.js | ||
.prettierrc | ||
|
||
# Build artifacts | ||
coverage/ | ||
*.log | ||
*.tsbuildinfo | ||
|
||
# Keep dist folder | ||
!dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Ensure we're in a clean state | ||
if [[ -n $(git status -s) ]]; then | ||
echo "Error: Working directory is not clean. Please commit or stash changes first." | ||
exit 1 | ||
fi | ||
|
||
# Get current version from package.json | ||
current_version=$(node -p "require('./package.json').version") | ||
echo "Current version: $current_version" | ||
|
||
# Ask for new version | ||
read -p "Enter new version (current is $current_version): " new_version | ||
|
||
# Validate version format | ||
if ! [[ $new_version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9]+)?$ ]]; then | ||
echo "Error: Version must be in format x.y.z or x.y.z-tag" | ||
exit 1 | ||
fi | ||
|
||
# Update version in package.json | ||
npm version $new_version -m "Release v%s" | ||
|
||
# Push changes and tags | ||
git push origin master | ||
git push origin v$new_version | ||
|
||
echo "Release v$new_version initiated!" | ||
echo "GitHub Actions will now:" | ||
echo "1. Run tests" | ||
echo "2. Create a GitHub release" | ||
echo "3. Publish to npm" |