Skip to content

Commit 4e28c5c

Browse files
committed
fix: Git tag push
1 parent 8731f97 commit 4e28c5c

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.circleci/config.yml

Lines changed: 23 additions & 3 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 "[email protected]"
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:[email protected]/rtfpessoa/diff2html"
129+
112130
publish_library:
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:[email protected]/rtfpessoa/diff2html"
135152
- run:
136153
name: Setup npm credentials
137154
command: |
@@ -202,12 +219,15 @@ workflows:
202219
- build-node-11
203220
- build-node-12
204221
- build-node-13
205-
- publish_library:
222+
- tag_version:
206223
requires:
207224
- publish_approval
225+
- publish_library:
226+
requires:
227+
- tag_version
208228
- publish_website:
209229
requires:
210-
- publish_approval
230+
- tag_version
211231
filters:
212232
branches:
213233
only:

0 commit comments

Comments
 (0)