Skip to content

Commit 9bb9268

Browse files
committed
docs: 更新CHANGELOG
1 parent 2294ad9 commit 9bb9268

3 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<!-- markdownlint-disable MD036 MD024-->
22
# CHANGELOG
3+
## 主要变化(2.11.1)
4+
* 2294ad9 fix: ai返回增加类型检查
5+
* fe0258a feat: ai过滤过期抽奖
6+
* a14af8e fix: ai模式带话题和错误at好友
7+
* e0c18b0 chore: 更新action
8+
9+
_如果之前版本小于上一版本,请查看[CHANGELOG](https://github.com/shanmiteko/LotteryAutoScript/blob/main/CHANGELOG.md)变更说明_
10+
311
## 主要变化(2.11.0)
412
* 1c36941 fix: origin is null
513
* 2f4734c chore: 不再推送至npm

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lottery-auto-script",
3-
"version": "2.11.0",
3+
"version": "2.11.1",
44
"description": "自动参与B站动态抽奖",
55
"main": "main.js",
66
"scripts": {

‎script/build/changelog.sh‎

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

33
# version: <major.minor.patch>
4-
level=minor
4+
level=patch
55

6-
npm version $level \
7-
--no-commit-hooks \
8-
--no-git-tag-version
9-
10-
OLD_VERSION_ARRAY=($(npm view lottery-auto-script version | tr '.' ' '))
6+
OLD_VERSION_ARRAY=($(npm pkg get version | tr -d '"' | tr '.' ' '))
117
major=${OLD_VERSION_ARRAY[0]}
128
minor=${OLD_VERSION_ARRAY[1]}
139
patch=${OLD_VERSION_ARRAY[2]}
@@ -27,6 +23,10 @@ case "${level}" in
2723
;;
2824
esac
2925

26+
npm version $level \
27+
--no-commit-hooks \
28+
--no-git-tag-version
29+
3030
NEW_VERSION="$major.$minor.$patch"
3131

3232
echo "New Version: $NEW_VERSION"

0 commit comments

Comments
 (0)