File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
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 :
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
You can’t perform that action at this time.
0 commit comments