File tree 2 files changed +34
-3
lines changed
2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- ' main'
7
+ - ' beta'
7
8
pull_request : {}
8
9
9
10
jobs :
10
11
build_test_release :
11
12
strategy :
12
13
matrix :
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"]') }}
14
+ node-version : ${{ fromJSON(( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '[16]' || '[12,14,16]') }}
15
+ os : ${{ fromJSON(( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest"]') }}
15
16
runs-on : ${{ matrix.os }}
16
17
17
18
steps :
27
28
- name : test
28
29
run : npm run test
29
30
- name : Release
30
- if : github.repository == 'testing-library/angular-testing-library' && github.ref == 'refs/heads/main'
31
+ if : github.repository == 'testing-library/angular-testing-library' && ( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
31
32
run : npx semantic-release
32
33
env :
33
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ if [ -z " $husky_skip_init " ]; then
3
+ debug () {
4
+ [ " $HUSKY_DEBUG " = " 1" ] && echo " husky (debug) - $1 "
5
+ }
6
+
7
+ readonly hook_name=" $( basename " $0 " ) "
8
+ debug " starting $hook_name ..."
9
+
10
+ if [ " $HUSKY " = " 0" ]; then
11
+ debug " HUSKY env variable is set to 0, skipping hook"
12
+ exit 0
13
+ fi
14
+
15
+ if [ -f ~ /.huskyrc ]; then
16
+ debug " sourcing ~/.huskyrc"
17
+ . ~ /.huskyrc
18
+ fi
19
+
20
+ export readonly husky_skip_init=1
21
+ sh -e " $0 " " $@ "
22
+ exitCode=" $? "
23
+
24
+ if [ $exitCode != 0 ]; then
25
+ echo " husky - $hook_name hook exited with code $exitCode (error)"
26
+ exit $exitCode
27
+ fi
28
+
29
+ exit 0
30
+ fi
You can’t perform that action at this time.
0 commit comments