diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-14 16:24:12 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-14 16:57:34 +0800 |
commit | aeddda360000222225e257fa139c2a8b807a2f0d (patch) | |
tree | ed27c6732a84808e9acb4668db856dd28f1b109a | |
parent | 5d4a43abb181ae4fd63d2365210ea4949f10012e (diff) |
chore: improve scripts about build
-rwxr-xr-x | scripts/gh-pages.sh | 2 | ||||
-rwxr-xr-x | scripts/update-version.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gh-pages.sh b/scripts/gh-pages.sh index e44bab4..a091820 100755 --- a/scripts/gh-pages.sh +++ b/scripts/gh-pages.sh | |||
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | git checkout -- .gitignore index.html && \ | 3 | git checkout gh-pages -- .gitignore index.html && \ |
4 | npm run build && npm run docs && \ | 4 | npm run build && npm run docs && \ |
5 | git branch --force gh-pages HEAD && \ | 5 | git branch --force gh-pages HEAD && \ |
6 | git checkout gh-pages && \ | 6 | git checkout gh-pages && \ |
diff --git a/scripts/update-version.sh b/scripts/update-version.sh index e5f24db..d68c713 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh | |||
@@ -9,6 +9,6 @@ jq ".version = \"$ANSWER\"" package.json >$TMP | |||
9 | cat $TMP >package.json | 9 | cat $TMP >package.json |
10 | 10 | ||
11 | git reset | 11 | git reset |
12 | git add package.json; git commit -m "chore(relase): $ANSWER" | 12 | git add package.json; git commit -m "chore(release): $ANSWER" |
13 | 13 | ||
14 | git show HEAD | 14 | git show HEAD |