Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/publish-auxiliary-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,10 @@ jobs:
npm config list
echo "Publishing packages as $(npm whoami)"
npm run publish-auxiliary

- name: "Publish tags"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

essentially same as https://github.com/mongodb-js/compass/blob/main/.github/workflows/publish-packages.yaml#L60 with one adjustment to not push tags for mongosh in this case

run: |
npx lerna list -a --json | \
jq -r '.[] | select(.name != "mongosh") | .name + "@" + .version' | \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is mongosh excluded here because it's not scoped with @mongosh/? Maybe add a comment or even a test somewhere that reminds people to update this line if that ever changes

Copy link
Contributor Author

@gagik gagik Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am excluding it here as it is the publishing auxiliary packages which would mean it'd try to publish mongosh@x.x.x multiple times and make the tag meaningless.

Come to think of it, it'd be trivial to extract this to a function as well and make this distinction easier to reason about (and test/enforce) so I'll do that. It'd be a good test for the release git run also as I'm not 100% on how well it can access git.

xargs -i sh -c "git tag -a {} -m {} || true"
git push --follow-tags
Loading