File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: ci-cd
2
2
on :
3
3
pull_request :
4
4
branches :
5
- - master
5
+ - main
6
6
- development
7
7
push :
8
8
branches :
57
57
run : BUILD_BRANCH=$(echo "${GITHUB_REF#refs/heads/}") npm run build
58
58
59
59
- name : Store assets
60
- if : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/master ') }}
60
+ if : ${{ github.event_name == 'push' && (github.ref == 'refs/heads/development' || github.ref == 'refs/heads/main ') }}
61
61
uses : actions/upload-artifact@v4
62
62
with :
63
63
name : assets
@@ -107,7 +107,7 @@ jobs:
107
107
name : Upload assets
108
108
runs-on : ubuntu-latest
109
109
needs : build
110
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master ' }}
110
+ if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main ' }}
111
111
strategy :
112
112
matrix :
113
113
environment :
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name: sonar-scan
2
2
on :
3
3
pull_request :
4
4
branches :
5
- - master
5
+ - main
6
6
- development
7
7
push :
8
8
branches :
9
- - master
9
+ - main
10
10
- development
11
11
12
12
jobs :
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ const VERSION = pkg.version;
7
7
module . exports = env => merge ( common , {
8
8
mode : 'development' ,
9
9
output : {
10
- filename : `[name]${ env . branch !== 'master ' ? `-dev-${ VERSION } ` : `-${ VERSION } ` } .js`
10
+ filename : `[name]${ env . branch !== 'main ' ? `-dev-${ VERSION } ` : `-${ VERSION } ` } .js`
11
11
}
12
12
} ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const VERSION = pkg.version;
7
7
module . exports = env => merge ( common , {
8
8
mode : 'production' ,
9
9
output : {
10
- filename : `[name]${ env . branch !== 'master ' ? `-dev-${ VERSION } ` : `-${ VERSION } ` } .min.js`
10
+ filename : `[name]${ env . branch !== 'main ' ? `-dev-${ VERSION } ` : `-${ VERSION } ` } .min.js`
11
11
} ,
12
12
performance : {
13
13
hints : 'error' , // build fails if asset size exceeded
You can’t perform that action at this time.
0 commit comments