File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,15 @@ name: ci
3
3
on :
4
4
push :
5
5
branches :
6
- - main
7
- pull_request :
8
- types : [opened, synchronize, reopened]
6
+ - ' main'
7
+ pull_request : {}
9
8
10
9
jobs :
11
10
build_test_release :
12
11
strategy :
13
12
matrix :
14
- os : [ubuntu-latest, windows-latest]
15
- node-version : [12, 14]
13
+ node-version : ${{ fromJSON(github.ref == 'refs/heads/main' && '[16]' || '[12,14,16]') }}
14
+ os : ${{ fromJSON(github.ref == 'refs/heads/main' && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest"]') }}
16
15
runs-on : ${{ matrix.os }}
17
16
18
17
steps :
@@ -22,14 +21,14 @@ jobs:
22
21
with :
23
22
node-version : ${{ matrix.node-version }}
24
23
- name : install
25
- run : npm install
24
+ run : npm install --force
26
25
- name : build
27
26
run : npm run build -- --skip-nx-cache
28
27
- name : test
29
28
run : npm run test -- --ci --code-coverage
30
29
- name : Release
31
- if : github.repository == 'testing-library/angular-testing-library' && github.ref == 'refs/heads/main' && matrix.node-version == 14 && matrix.os == 'ubuntu-latest'
30
+ if : github.repository == 'testing-library/angular-testing-library' && github.ref == 'refs/heads/main'
31
+ run : npx semantic-release
32
32
env :
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
34
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35
- run : npx semantic-release
Original file line number Diff line number Diff line change 47
47
},
48
48
"devDependencies" : {
49
49
"@angular-devkit/build-angular" : " 12.0.0" ,
50
- "@angular-eslint/eslint-plugin" : " ~2.1 .0" ,
51
- "@angular-eslint/eslint-plugin-template" : " ~2.1 .0" ,
52
- "@angular-eslint/template-parser" : " ~2.1 .0" ,
50
+ "@angular-eslint/eslint-plugin" : " ~12.0 .0" ,
51
+ "@angular-eslint/eslint-plugin-template" : " ~12.0 .0" ,
52
+ "@angular-eslint/template-parser" : " ~12.0 .0" ,
53
53
"@angular/cli" : " 12.0.0" ,
54
54
"@angular/compiler-cli" : " 12.0.0" ,
55
55
"@angular/language-service" : " 12.0.0" ,
84
84
"ts-node" : " 9.1.1" ,
85
85
"typescript" : " 4.2.4"
86
86
}
87
- }
87
+ }
You can’t perform that action at this time.
0 commit comments