@icarusmx/creta 1.4.4 → 1.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/deploy-patch.sh +30 -0
  2. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ #!/bin/bash
2
+
3
+ # Get current version from package.json
4
+ CURRENT_VERSION=$(node -p "require('./package.json').version")
5
+
6
+ # Split version into parts
7
+ IFS='.' read -r -a VERSION_PARTS <<< "$CURRENT_VERSION"
8
+ MAJOR="${VERSION_PARTS[0]}"
9
+ MINOR="${VERSION_PARTS[1]}"
10
+ PATCH="${VERSION_PARTS[2]}"
11
+
12
+ # Increment patch
13
+ NEW_PATCH=$((PATCH + 1))
14
+ NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
15
+
16
+ echo "📦 Bumping version: $CURRENT_VERSION → $NEW_VERSION"
17
+
18
+ # Update package.json
19
+ sed -i '' "s/\"version\": \"$CURRENT_VERSION\"/\"version\": \"$NEW_VERSION\"/" package.json
20
+
21
+ echo "🚀 Publishing to npm..."
22
+ npm publish
23
+
24
+ if [ $? -eq 0 ]; then
25
+ echo "✅ Successfully published @icarusmx/creta@$NEW_VERSION"
26
+ else
27
+ echo "❌ Publish failed, reverting version..."
28
+ sed -i '' "s/\"version\": \"$NEW_VERSION\"/\"version\": \"$CURRENT_VERSION\"/" package.json
29
+ exit 1
30
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icarusmx/creta",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "Salgamos de este laberinto.",
5
5
  "type": "module",
6
6
  "bin": {