File tree Expand file tree Collapse file tree 3 files changed +85
-0
lines changed Expand file tree Collapse file tree 3 files changed +85
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " npm"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " daily"
7
+ timezone : " Asia/Saigon"
8
+ time : " 00:00"
9
+ target-branch : " develop"
10
+ open-pull-requests-limit : 20
11
+ reviewers :
12
+ - " hckhanh"
13
+ commit-message :
14
+ prefix : " deps"
15
+ include : " scope"
16
+ - package-ecosystem : " github-actions"
17
+ directory : " /"
18
+ schedule :
19
+ interval : " daily"
20
+ timezone : " Asia/Saigon"
21
+ time : " 15:30"
22
+ target-branch : " develop"
23
+ open-pull-requests-limit : 20
24
+ reviewers :
25
+ - " hckhanh"
26
+ commit-message :
27
+ prefix : " build"
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ release :
10
+ name : npm
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v2
17
+ with :
18
+ fetch-depth : 0
19
+ - name : Set up Node
20
+ uses : actions/setup-node@v2.1.2
21
+ with :
22
+ check-latest : true
23
+ - name : Get yarn cache directory path
24
+ id : yarn-cache-dir-path
25
+ run : echo "::set-output name=dir::$(yarn cache dir)"
26
+ - name : Cache dependencies and build outputs
27
+ uses : actions/cache@v2
28
+ id : yarn-cache
29
+ with :
30
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
31
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32
+ restore-keys : |
33
+ ${{ runner.os }}-yarn-
34
+ - name : Check dependencies
35
+ run : yarn --frozen-lockfile --check-files
36
+ - name : Run tests
37
+ run : yarn test
38
+ - name : Release
39
+ env :
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
42
+ run : npx semantic-release
Original file line number Diff line number Diff line change 45
45
"oclif" : {
46
46
"bin" : " pg2bigquery"
47
47
},
48
+ "release" : {
49
+ "branches" : [
50
+ " +([0-9])?(.{+([0-9]),x}).x" ,
51
+ " main" ,
52
+ " next" ,
53
+ " next-major" ,
54
+ {
55
+ "name" : " beta" ,
56
+ "prerelease" : true
57
+ },
58
+ {
59
+ "name" : " alpha" ,
60
+ "prerelease" : true
61
+ }
62
+ ]
63
+ },
48
64
"repository" : " hckhanh/pg2bigquery" ,
49
65
"scripts" : {
50
66
"posttest" : " eslint . --ext .ts --config .eslintrc" ,
You can’t perform that action at this time.
0 commit comments