6
6
- master
7
7
paths-ignore :
8
8
- .github/**
9
- # manual trigger
9
+
10
10
workflow_dispatch :
11
11
12
12
jobs :
13
13
# Wait for up to a minute for previous run to complete, abort if not done by then
14
14
pre-run :
15
15
runs-on : ubuntu-latest
16
- timeout-minutes : 15
16
+ timeout-minutes : 20
17
17
steps :
18
18
- name : ' Block Concurrent Executions'
19
19
uses : softprops/turnstyle@v1
@@ -31,14 +31,14 @@ jobs:
31
31
changelog : ${{ steps.github_tag_action.outputs.changelog }}
32
32
steps :
33
33
- name : Checkout
34
- uses : actions/checkout@v1
34
+ uses : actions/checkout@v3
35
35
36
36
- name : Bump version and push tag
37
37
id : github_tag_action
38
38
uses :
mathieudutour/[email protected]
39
39
with :
40
40
github_token : ${{ secrets.GITHUB_TOKEN }}
41
- release_branches : main
41
+ release_branches : master
42
42
43
43
create_release :
44
44
name : Create Release
@@ -47,32 +47,34 @@ jobs:
47
47
if : ${{ needs.bump_version.outputs.new_tag != null }}
48
48
steps :
49
49
- name : Checkout 🛎️
50
- uses : actions/checkout@v2.3.1
50
+ uses : actions/checkout@v3
51
51
with :
52
52
submodules : recursive
53
53
54
54
- name : Setup Node
55
- uses : actions/setup-node@v1
55
+ uses : actions/setup-node@v3
56
56
with :
57
- node-version : ' 14.17.0 '
58
-
59
- - name : Install yarn
60
- run : npm install --global yarn
57
+ node-version : ' 16.x '
58
+ - name : Get yarn cache directory path
59
+ id : yarn-cache-dir-path
60
+ run : echo "::set-output name=dir::$( yarn cache dir)"
61
61
62
- - name : Cache dependencies
63
- uses : actions/ cache@v1
62
+ - uses : actions/cache@v3
63
+ id : yarn- cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
64
64
with :
65
- path : ~/.npm
66
- key : ${{ runner.os }}-node -${{ hashFiles('**/yarn.lock') }}
65
+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
66
+ key : ${{ runner.os }}-yarn -${{ hashFiles('**/yarn.lock') }}
67
67
restore-keys : |
68
- ${{ runner.os }}-node-
69
- - name : Install Dependencies
70
- run : |
71
- yarn
72
- yarn install --frozen-lockfile
73
- - name : Build
74
- run : |
75
- yarn run build
68
+ ${{ runner.os }}-yarn-
69
+
70
+ - name : Install project dependencies
71
+ run : yarn --prefer-offline
72
+ id : install
73
+
74
+ - name : Install project dependencies
75
+ run : yarn run build
76
+ id : production
77
+
76
78
- name : Deploy 🚀
77
79
78
80
with :
81
83
82
84
- name : Create GitHub Release
83
85
id : create_release
84
-
86
+
85
87
env :
86
88
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87
89
with :
0 commit comments