Skip to content

Commit f1af9ae

Browse files
authored
chore(ci): fix jq expr that lists tags (#24)
chore(ci): fix jq to get tags
1 parent 7bbd120 commit f1af9ae

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/publish-packages.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
branches: [main]
77
types:
88
- completed
9-
9+
1010
jobs:
1111
publish:
1212
if: |
@@ -55,8 +55,7 @@ jobs:
5555
- name: "Publish tags"
5656
run: |
5757
npx lerna list -a --json | \
58-
jq '{tag: (.[].name + "@" + .[].version)}' | \
59-
jq -r .tag | \
60-
xargs -i sh -c "git tag -a {} -m {} || true"
58+
jq -r '.[] | .name + "@" + .version' | \
59+
xargs -I "sh -c 'git tag -a {} -m {} || echo {} already present'"
6160
git push --follow-tags
6261

0 commit comments

Comments
 (0)