File tree 1 file changed +4
-35
lines changed
1 file changed +4
-35
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ concurrency:
21
21
cancel-in-progress : ${{ github.event_name == 'pull_request' }}
22
22
23
23
jobs :
24
- fmt :
24
+ fmt-lint-build :
25
25
name : fmt
26
26
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
27
27
steps :
@@ -31,56 +31,25 @@ jobs:
31
31
- name : Setup Node
32
32
uses : buildjet/setup-node@v3
33
33
with :
34
- node-version : env.NODE_VERSION
34
+ node-version : 16.20.1
35
35
cache : " yarn"
36
36
cache-dependency-path : " offlinedocs/yarn.lock"
37
37
38
- - name : Install Pretier
38
+ - name : Install dependencies
39
39
run : |
40
40
cd offlinedocs
41
- mv package.json package.json.bak
42
- jq '{dependencies: {prettier: .devDependencies.prettier}}' < package.json.bak > package.json
43
- yarn --frozen-lockfile
44
- mv package.json.bak package.json
41
+ yarn
45
42
46
43
- name : Check format
47
44
run : |
48
45
cd offlinedocs
49
46
yarn format:check
50
47
51
- lint :
52
- name : lint
53
- runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
54
- steps :
55
- - name : Checkout
56
- uses : actions/checkout@v3
57
-
58
- - name : Setup Node
59
- uses : buildjet/setup-node@v3
60
- with :
61
- node-version : env.NODE_VERSION
62
- cache : " yarn"
63
- cache-dependency-path : " offlinedocs/yarn.lock"
64
-
65
48
- name : lint
66
49
run : |
67
50
cd offlinedocs
68
51
yarn && yarn lint
69
52
70
- build :
71
- name : build
72
- runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
73
- steps :
74
- - name : Checkout
75
- uses : actions/checkout@v3
76
-
77
- - name : Setup Node
78
- uses : buildjet/setup-node@v3
79
- with :
80
- node-version : env.NODE_VERSION
81
- cache : " yarn"
82
- cache-dependency-path : " offlinedocs/yarn.lock"
83
-
84
53
- name : Build
85
54
run : |
86
55
version="$(./scripts/version.sh)"
You can’t perform that action at this time.
0 commit comments