Skip to content

Commit d2f4f1f

Browse files
committedJun 23, 2022
use if expression on the publish step
1 parent eb3deef commit d2f4f1f

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed
 

‎.github/workflows/web-console.yml

+1-23
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
jobs:
77
build:
88
name: Build packages/web-console
9-
if: github.ref != 'refs/heads/main'
109
runs-on: ubuntu-latest
1110

1211
steps:
@@ -22,29 +21,8 @@ jobs:
2221
- name: build
2322
run: yarn workspace @questdb/web-console run build
2423

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-
4724
- name: Publish @questdb/web-console to npm
25+
# if: github.ref == 'refs/heads/main'
4826
uses: JS-DevTools/npm-publish@v1
4927
with:
5028
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)
Failed to load comments.