Skip to content

Commit b62d9b0

Browse files
committed
fix: update publish task regex
1 parent 256faae commit b62d9b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,11 +473,11 @@ jobs:
473473
shell: bash
474474
- name: Publish
475475
run: |
476-
if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$";
476+
if git log -1 --pretty=%B | grep "^chore(release): [0-9]\+\.[0-9]\+\.[0-9]\+$";
477477
then
478478
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
479479
npm publish --access public
480-
elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+";
480+
elif git log -1 --pretty=%B | grep "^chore(release): [0-9]\+\.[0-9]\+\.[0-9]\+";
481481
then
482482
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
483483
npm publish --tag next --access public

0 commit comments

Comments
 (0)