Skip to content

Commit 6bbc372

Browse files
authored
Merge pull request #20 from analyticsjs/develop
chore: release next version
2 parents 62bae11 + 922feaa commit 6bbc372

File tree

4 files changed

+1288
-3198
lines changed

4 files changed

+1288
-3198
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,13 @@ jobs:
1212
# 获取源码
1313
- name: Checkout
1414
uses: actions/checkout@v2
15-
# 查找yarn缓存
16-
- name: Get yarn cache path
17-
id: yarn-cache
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
19-
# 更新缓存
20-
- name: Cache Dependencies
21-
uses: actions/cache@v1
22-
with:
23-
path: ${{ steps.yarn-cache.outputs.dir }}
24-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25-
restore-keys: |
26-
${{ runner.os }}-yarn-
2715
# 安装依赖并打包
2816
- name: Install and build
2917
run: |
30-
yarn global add pkg
31-
yarn add -D @semantic-release/changelog @semantic-release/git
32-
yarn install
33-
yarn build
18+
npm add -g pnpm
19+
pnpm add -D @semantic-release/changelog @semantic-release/git
20+
pnpm install
21+
pnpm build
3422
# 压缩构建后的文件
3523
- name: Compress
3624
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ node_modules
44
*.rar
55
config.json
66
report.txt
7+
dist

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@
1515
"test": "jest --no-cache",
1616
"lint": "eslint src --ext .js,.ts",
1717
"format": "prettier --write .",
18+
"up": "npx npm-check-updates -u",
1819
"backup": "git add . && git commit -m \"chore: backup\" && git push",
1920
"prepare": "simple-git-hooks"
2021
},
2122
"devDependencies": {
22-
"@semantic-release/changelog": "^6.0.1",
23-
"@semantic-release/git": "^10.0.1",
24-
"eslint": "^8.5.0",
25-
"eslint-config-prettier": "^8.3.0",
26-
"eslint-plugin-prettier": "^4.0.0",
27-
"jest": "^27.4.7",
28-
"lint-staged": "11.1.2",
29-
"pkg": "^5.7.0",
30-
"prettier": "^2.5.1",
23+
"eslint": "^8.38.0",
24+
"eslint-config-prettier": "^8.8.0",
25+
"eslint-plugin-prettier": "^4.2.1",
26+
"jest": "^29.5.0",
27+
"lint-staged": "13.2.1",
28+
"pkg": "^5.8.1",
29+
"prettier": "^2.8.7",
3130
"simple-git-hooks": "^2.8.1"
3231
},
3332
"dependencies": {
34-
"dayjs": "^1.10.7"
33+
"dayjs": "^1.11.7"
3534
},
3635
"simple-git-hooks": {
3736
"pre-commit": "pnpm exec lint-staged --concurrent false",
@@ -42,4 +41,4 @@
4241
"prettier --write ."
4342
]
4443
}
45-
}
44+
}

0 commit comments

Comments
 (0)