File tree 4 files changed +22
-8084
lines changed
4 files changed +22
-8084
lines changed Original file line number Diff line number Diff line change 1
1
name : Release Project
2
2
3
- # on:
4
- # push:
5
- # tags:
6
- # - 'v*' # 当推送以 "v" 开头的标签时触发
7
3
on :
8
4
push :
9
- branches :
10
- - master
5
+ tags :
6
+ - ' v* ' # 当推送以 "v" 开头的标签时触发
11
7
12
8
jobs :
13
9
build-and-release :
28
24
- name : Install pnpm
29
25
run : npm install -g pnpm
30
26
- name : Install dependencies
31
- run : pnpm install --frozen-lockfile
27
+ run : pnpm install
32
28
- name : Build the extension
33
29
run : pnpm build
34
30
- name : Package the extension into a zip artifact
39
35
env :
40
36
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
41
37
with :
42
- tag_name : ${{ github.ref }}
43
- release_name : Release ${{ github.ref }}
38
+ tag_name : ${{ github.ref_name }}
39
+ release_name : Release ${{ github.ref_name }}
44
40
draft : false
45
41
prerelease : false
46
42
50
46
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
51
47
with :
52
48
upload_url : ${{ steps.create_release.outputs.upload_url }}
53
- asset_path : ./chrome-mv3-prod.zip # 指定文件路径
49
+ asset_path : ./build/ chrome-mv3-prod.zip # 指定文件路径
54
50
asset_name : chrome-mv3-prod.zip
55
51
asset_content_type : application/zip
Original file line number Diff line number Diff line change 32
32
# typescript
33
33
.tsbuildinfo
34
34
35
- examples
35
+ examples
36
+
37
+ # github action 安装时会冲突,暂时没找到原因,先不提交了
38
+ pnpm-lock.yaml
Original file line number Diff line number Diff line change
1
+ function readPackage ( packageJson , context ) {
2
+ if ( [ 'lightningcss' ] . includes ( packageJson . name ) && packageJson . optionalDependencies ) {
3
+ packageJson . optionalDependencies = { } ; // 清空 optionalDependencies
4
+ }
5
+ return packageJson ;
6
+ }
7
+
8
+ module . exports = {
9
+ hooks : {
10
+ readPackage,
11
+ } ,
12
+ } ;
You can’t perform that action at this time.
0 commit comments