Skip to content

Commit e0a051c

Browse files
committed
fix(ci): add publishing tags step when publishing auxiliary packages
lerna publish doesn't automatically push tags when using from-package so we have to create and push the tags manually.
1 parent 7f9449e commit e0a051c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish-auxiliary-packages.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,10 @@ jobs:
5858
npm config list
5959
echo "Publishing packages as $(npm whoami)"
6060
npm run publish-auxiliary
61+
62+
- name: "Publish tags"
63+
run: |
64+
npx lerna list -a --json | \
65+
jq -r '.[] | select(.name != "mongosh") | .name + "@" + .version' | \
66+
xargs -i sh -c "git tag -a {} -m {} || true"
67+
git push --follow-tags

0 commit comments

Comments
 (0)