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