Skip to content

Commit 02c12b4

Browse files
author
liuyi
committed
revert circleci config
1 parent f4a4125 commit 02c12b4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ jobs:
4444
- attach_workspace:
4545
at: ~/emotion-ts-plugin
4646
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
47-
- run: npm publish
47+
- run: |
48+
if git log -1 --pretty=%B | grep -E "^v?\d+\.\d+\.\d+$";
49+
then
50+
npm publish
51+
else
52+
echo "Not a release, skipping publish"
53+
fi
4854
workflows:
4955
version: 2
5056
build_test_and_deploy:
@@ -58,6 +64,6 @@ workflows:
5864
- test
5965
filters:
6066
tags:
61-
only: /^v?\d+\.\d+\.\d+$/
67+
only: /.*/
6268
branches:
63-
ignore: /.*/
69+
only: master

0 commit comments

Comments
 (0)