Skip to content

Commit

Permalink
Add CI step to publish glean
Browse files Browse the repository at this point in the history
Only when a new tag is created.
  • Loading branch information
brizental committed Feb 16, 2021
1 parent a11f3a7 commit 0b2905c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ jobs:
name: Verify no Javascript errors found in Qt
command: bin/qt-js-check.sh

publish:
docker:
- image: cimg/node:14.13.1
steps:
- checkout
- run:
name: Install Javascript dependencies
command: npm --prefix ./glean install
- run:
name: NPM Authentication
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
- run:
name: Publish to npm
command: export PATH=.:$PATH && (cd glean && npm publish)


workflows:
version: 2
Expand All @@ -73,6 +88,15 @@ workflows:
- lint
- unit-tests
- check-qt-js
- publish:
requires:
- lint
- unit-tests
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*/
# Comment this job away until Bug 1681899 is resolved.
# - check-size:
# filters:
Expand Down

0 comments on commit 0b2905c

Please sign in to comment.