7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- name : Check out source code
10
- uses : actions/checkout@v3
10
+ uses : actions/checkout@v4
11
11
with :
12
12
fetch-depth : 0
13
13
- name : Set up node
14
- uses : actions/setup-node@v3
14
+ uses : actions/setup-node@v4
15
15
with :
16
16
node-version : ' 18.x'
17
17
- name : Prepare metadata
@@ -24,21 +24,21 @@ jobs:
24
24
run : npm run lint
25
25
check : # group all `test (*)` workflows into one for the required status check
26
26
needs : test
27
- if : always() && !contains(needs.*.result, 'cancelled')
27
+ if : ${{ always() && !contains(needs.*.result, 'cancelled') }}
28
28
runs-on : ubuntu-latest
29
29
steps :
30
30
- run : ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}
31
31
publish :
32
32
needs : check
33
33
runs-on : ubuntu-latest
34
- if : " ${{ github.event.ref == 'refs/heads/develop' || github.event.ref == 'refs/heads/release' }}"
34
+ if : ${{ github.event.ref == 'refs/heads/develop' || github.event.ref == 'refs/heads/release' }}
35
35
steps :
36
36
- name : Check out source code
37
- uses : actions/checkout@v3
37
+ uses : actions/checkout@v4
38
38
with :
39
39
fetch-depth : 0
40
40
- name : Set up node
41
- uses : actions/setup-node@v3
41
+ uses : actions/setup-node@v4
42
42
with :
43
43
registry-url : ' https://registry.npmjs.org'
44
44
- name : Prepare metadata
@@ -50,10 +50,10 @@ jobs:
50
50
release :
51
51
needs : check
52
52
runs-on : ubuntu-latest
53
- if : contains(github.event.head_commit.message, 'autorelease') && github.event_name == 'push' && github.event.ref == 'refs/heads/develop'
53
+ if : ${{ contains(github.event.head_commit.message, 'autorelease') && github.event_name == 'push' && github.event.ref == 'refs/heads/develop' }}
54
54
steps :
55
55
- name : Check out source code
56
- uses : actions/checkout@v3
56
+ uses : actions/checkout@v4
57
57
with :
58
58
fetch-depth : 0
59
59
token : ${{ secrets.PUSH_TOKEN }}
0 commit comments