Skip to content

Commit 401aea8

Browse files
authored
ci: allow trailing space in EDR release commit (#5090)
1 parent 91c94cd commit 401aea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/edr-npm-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,12 @@ jobs:
417417
run: pnpm artifacts
418418
- name: Publish
419419
run: |
420-
if git log -1 --pretty=%B | grep "^edr-[0-9]\+\.[0-9]\+\.[0-9]\+$";
420+
if git log -1 --pretty=%B | grep "^edr-[0-9]\+\.[0-9]\+\.[0-9]\+\s*";
421421
then
422422
echo "Publishing release"
423423
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
424424
pnpm publish --no-git-checks --provenance --access public
425-
elif git log -1 --pretty=%B | grep "^edr-[0-9]\+\.[0-9]\+\.[0-9]\+";
425+
elif git log -1 --pretty=%B | grep "^edr-[0-9]\+\.[0-9]\+\.[0-9]\+-";
426426
then
427427
echo "Publishing pre-release"
428428
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

0 commit comments

Comments
 (0)