Skip to content

Commit f10c020

Browse files
author
brizental
committed
Add CI step to publish glean
Only when a new tag is created.
1 parent 2c89401 commit f10c020

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.circleci/config.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,21 @@ jobs:
6565
name: Verify no Javascript errors found in Qt
6666
command: bin/qt-js-check.sh
6767

68+
publish:
69+
docker:
70+
- image: cimg/node:14.13.1
71+
steps:
72+
- checkout
73+
- run:
74+
name: Install Javascript dependencies
75+
command: npm --prefix ./glean install
76+
- run:
77+
name: NPM Authentication
78+
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
79+
- run:
80+
name: Publish to npm
81+
command: export PATH=.:$PATH && (cd glean && npm publish)
82+
6883

6984
workflows:
7085
version: 2
@@ -73,6 +88,15 @@ workflows:
7388
- lint
7489
- unit-tests
7590
- check-qt-js
91+
- publish:
92+
requires:
93+
- lint
94+
- unit-tests
95+
filters:
96+
branches:
97+
ignore: /.*/
98+
tags:
99+
only: /v[0-9]+(\.[0-9]+)*/
76100
# Comment this job away until Bug 1681899 is resolved.
77101
# - check-size:
78102
# filters:

0 commit comments

Comments
 (0)