fix: Git tag push

This commit is contained in:
Rodrigo Fernandes 2020-02-05 21:27:25 +00:00
parent 8731f97266
commit 4e28c5c327
No known key found for this signature in database
GPG key ID: 67157D2E3D4258B4

View file

@ -109,6 +109,24 @@ jobs:
docker: docker:
- image: node:13 - image: node:13
tag_version:
docker:
- image: node:13
working_directory: ~/workdir
steps:
- attach_workspace:
at: ~/workdir
- run:
name: Configure Git
command: |
git config user.email "circleci@users.noreply.github.com"
git config user.name "CircleCI"
- run:
name: Tag version
command: |
git tag "$(cat .version)"
git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html"
publish_library: publish_library:
docker: docker:
- image: node:13 - image: node:13
@ -131,7 +149,6 @@ jobs:
command: | command: |
# Update version in packages to publish # Update version in packages to publish
yarn version --non-interactive --new-version $(cat .version) yarn version --non-interactive --new-version $(cat .version)
git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html"
- run: - run:
name: Setup npm credentials name: Setup npm credentials
command: | command: |
@ -202,12 +219,15 @@ workflows:
- build-node-11 - build-node-11
- build-node-12 - build-node-12
- build-node-13 - build-node-13
- tag_version:
requires:
- publish_approval
- publish_library: - publish_library:
requires: requires:
- publish_approval - tag_version
- publish_website: - publish_website:
requires: requires:
- publish_approval - tag_version
filters: filters:
branches: branches:
only: only: