From fac69fbcf4348384c09d111a82d7b526924978a9 Mon Sep 17 00:00:00 2001 From: rschamp <rschamp@media.mit.edu> Date: Fri, 6 Sep 2019 10:50:08 -0400 Subject: [PATCH] Tag after publishing --- .circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6bd4c2f39..bdb42469e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,8 +81,9 @@ jobs: deploy-npm: docker: - image: circleci/node:8.16-browsers - working_directory: ~/repo + working_directory: ~/repo steps: + - run: echo export RELEASE_VERSION="0.1.0-prerelease.$(date +'%Y%m%d%H%M%S')" >> $BASH_ENV - restore_cache: keys: - v1-git-{{ .Revision }} @@ -91,7 +92,10 @@ jobs: - restore_cache: keys: - v1-dist-{{ .Revision }} + - run: npm version --no-git-tag-version $RELEASE_VERSION - run: npm publish --dry-run + - run: echo git tag $RELEASE_VERSION + - run: echo git push $CIRCLE_REPOSITORY_URL $RELEASE_VERSION deploy-requirements: &deploy-requirements requires: @@ -102,6 +106,7 @@ deploy-requirements: &deploy-requirements - master - develop - smoke + - circle - /^hotfix\/.*/ workflows: -- GitLab