Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Add CI pipeline for releasing #18

Merged
merged 1 commit into from
Mar 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,28 @@ jobs:
- run: sudo apt install -y expect
- run: bazel run //:deploy-npm -- test $TEST_REPO_USERNAME $TEST_REPO_PASSWORD $TEST_REPO_EMAIL

release-approval:
machine: true
steps:
- checkout
- bazel_install
- run: bazel run @graknlabs_grabl//ci:release-approval

deploy-npm:
machine: true
working_directory: ~/grakn
steps:
- checkout
- bazel_install
- bazel_add_rbe_credential
- run: bazel run //:deploy-npm -- npmjs $NPM_REPO_USERNAME $NPM_REPO_PASSWORD $NPM_REPO_EMAIL

release-cleanup:
machine: true
steps:
- checkout
- run: git push --delete origin grakn-client-nodejs-release-branch

workflows:
version: 2
grakn-client-nodejs-ci:
Expand All @@ -72,3 +94,28 @@ workflows:
filters:
branches:
only: master
requires:
- client-nodejs
- release-approval:
filters:
branches:
only: master
requires:
- client-nodejs

# the 'grakn-client-nodejs-release' workflow is triggered by the creation of 'grakn-client-nodejs-release-branch' branch in graknlabs/client-nodejs
# it consists of jobs which:
# - publishes client-nodejs to npm
# - cleans up the 'grakn-client-nodejs-release-branch' branch which was created by the release-approval job
grakn-client-nodejs-release:
jobs:
- deploy-npm:
filters:
branches:
only: grakn-client-nodejs-release-branch
- release-cleanup:
requires:
- deploy-npm
filters:
branches:
only: grakn-client-nodejs-release-branch
6 changes: 5 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ git_repository(
commit="6298bcf46c0ae8b1b5c9bd5138e10be38a3a9bc3"
)


git_repository(
name = "graknlabs_grabl",
remote = "https://github.com/graknlabs/grabl",
commit="ad79f87f869d25694fe11196e16be42a80e95d14"
)

# ----- @graknlabs_grakn deps -----
git_repository(
Expand Down