Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 12dfc21

Browse files
Update script and version
1 parent 3a17650 commit 12dfc21

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "storage-function",
3-
"version": "2022.08.06",
3+
"version": "2022.08.05",
44
"description": "A function to manipulate browser storages",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

scripts/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
echo -e "Hello, "$USER".\nWelcome to the storage-function build script!"
4-
echo -e "Which version option do you wish to use?\n1. Major [1.x.x]\n2. Minor [x.1.x]\n3. Patch [x.x.1] (Default)"
4+
echo -e "Which version option do you wish to use?\n1. Major [1.x.x]\n2. Minor [x.1.x]\n3. Patch [x.x.1] (Default)\n4. Manuel [x.x.x]"
55
echo -n "Enter your choice [1-2-3] or press [ENTER]:"
66
read choice
77

@@ -11,6 +11,11 @@ if [ $choice == 1 ]; then
1111
elif [ $choice == 2 ]; then
1212
echo "Minor version is preparing..."
1313
npm version minor
14+
elif [ $choice == 4 ]; then
15+
echo -n "Enter your new version with [x.x.x] format:"
16+
read version
17+
echo "$version version is preparing..."
18+
npm version $version
1419
else
1520
echo "Patch version is preparing..."
1621
npm version patch

0 commit comments

Comments
 (0)