1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 6
6
jobs :
7
7
build :
8
8
name : Build packages/web-console
9
- if : github.ref != 'refs/heads/main'
10
9
runs-on : ubuntu-latest
11
10
12
11
steps :
22
21
- name : build
23
22
run : yarn workspace @questdb/web-console run build
24
23
25
- publish :
26
- name : Publish @questdb/web-console
27
- runs-on : ubuntu-latest
28
- # if: github.ref == 'refs/heads/main'
29
- steps :
30
- # TODO: do not build again for publishing
31
- # reuse built artifact in this job
32
- - name : Checkout
33
- uses : actions/checkout@v3
34
-
35
- - name : Setup node
36
- uses : actions/setup-node@v3
37
- with :
38
- node-version : ' 16.13.1'
39
- cache : ' yarn'
40
-
41
- - name : Install dependencies
42
- run : yarn install --immutable --immutable-cache
43
-
44
- - name : build @questdb/web-console
45
- run : yarn workspace @questdb/web-console run build
46
-
47
24
- name : Publish @questdb/web-console to npm
25
+ # if: github.ref == 'refs/heads/main'
48
26
uses : JS-DevTools/npm-publish@v1
49
27
with :
50
28
token : ${{ secrets.NPM_TOKEN }}
0 commit comments