Skip to content

Commit 254744e

Browse files
committed
fix: Git tag push
1 parent 91c3228 commit 254744e

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.circleci/config.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,24 @@ jobs:
109109
docker:
110110
- image: node:13
111111

112+
tag_version:
113+
docker:
114+
- image: node:13
115+
working_directory: ~/workdir
116+
steps:
117+
- attach_workspace:
118+
at: ~/workdir
119+
- run:
120+
name: Configure Git
121+
command: |
122+
git config user.email "circleci@users.noreply.github.com"
123+
git config user.name "CircleCI"
124+
- run:
125+
name: Tag version
126+
command: |
127+
git tag "$(cat .version)"
128+
git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html-cli"
129+
112130
publish_cli:
113131
docker:
114132
- image: node:13
@@ -131,7 +149,6 @@ jobs:
131149
command: |
132150
# Update version in packages to publish
133151
yarn version --non-interactive --new-version $(cat .version)
134-
git push --tags "https://rtfpessoa:$GPR_AUTH_TOKEN@github.com/rtfpessoa/diff2html-cli"
135152
- run:
136153
name: Setup npm credentials
137154
command: |
@@ -188,7 +205,10 @@ workflows:
188205
- build-node-11
189206
- build-node-12
190207
- build-node-13
191-
- publish_cli:
208+
- tag_version:
192209
requires:
193210
- publish_approval
211+
- publish_cli:
212+
requires:
213+
- tag_version
194214

0 commit comments

Comments
 (0)