Skip to content

Commit 8cc60b1

Browse files
author
Arijus Šukys
authoredJun 23, 2022
web console automate npm publish (#13)
* add npm publish job * add publish config * temp unskip build to test * use `if` expression on the publish step * remove `greater-version-only` currently doesn't work JS-DevTools/npm-publish#52 * bump package version to test npm publish * Revert "bump package version to test npm publish" This reverts commit bf3f648. * uncomment `if` expression to publish only from `main`
1 parent d55c0fc commit 8cc60b1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed
 

‎.github/workflows/web-console.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@ name: web-console
22

33
on:
44
push:
5-
paths:
6-
- packages/web-console/**
7-
branches-ignore:
8-
- main
9-
- refs/tags/*
105

116
jobs:
127
build:
8+
name: Build packages/web-console
139
runs-on: ubuntu-latest
1410

1511
steps:
@@ -24,3 +20,13 @@ jobs:
2420

2521
- name: build
2622
run: yarn workspace @questdb/web-console run build
23+
24+
- name: Publish @questdb/web-console to npm
25+
if: github.ref == 'refs/heads/main'
26+
uses: JS-DevTools/npm-publish@v1
27+
with:
28+
token: ${{ secrets.NPM_TOKEN }}
29+
access: public
30+
check-version: true
31+
package: ./packages/web-console/package.json
32+
dry-run: true

0 commit comments

Comments
 (0)
Failed to load comments.