File tree 1 file changed +18
-7
lines changed
1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,29 @@ jobs:
17
17
uses : actions/setup-node@v3
18
18
with :
19
19
node-version : ' 22'
20
- cache : ' yarn '
20
+ cache : ' npm '
21
21
22
22
- name : Setup Go environment
23
23
uses : actions/setup-go@v3
24
24
with :
25
25
go-version : ' 1.23'
26
26
27
27
- name : Install dependencies
28
- run : yarn install --immutable --prefer-offline
29
-
30
- - name : Build and test frontend
31
- run : yarn build
28
+ run : npm ci
29
+
30
+ - name : Check types
31
+ run : npm run typecheck
32
+ - name : Lint
33
+ run : npm run lint
34
+ - name : Unit tests
35
+ run : npm run test:ci
36
+ - name : Build frontend
37
+ run : |
38
+ if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
39
+ npm run build -- --profile --json stats.json
40
+ else
41
+ npm run build
42
+ fi
32
43
33
44
- name : Check for backend
34
45
id : check-for-backend
59
70
if : ${{ env.GRAFANA_API_KEY == '' }}
60
71
61
72
- name : Sign plugin
62
- run : yarn sign || exit 0
63
- if : ${{ env.GRAFANA_API_KEY != '' }}
73
+ run : npm run sign
74
+ if : ${{ env.GRAFANA_ACCESS_POLICY_TOKEN != '' }}
64
75
65
76
- name : Get plugin metadata
66
77
id : metadata
You can’t perform that action at this time.
0 commit comments