@@ -24,12 +24,15 @@ jobs:
2424 with :
2525 # don't checkout a detatched HEAD
2626 ref : ${{ github.head_ref }}
27+ # this is important so git log can pick up on the whole history to
28+ # find last publish commit
29+ fetch-depth : ' 0'
2730 token : ${{ steps.app-token.outputs.token }}
2831
2932 - uses : actions/setup-node@v4
3033 with :
3134 node-version : 20.16.0
32- cache : " npm"
35+ cache : ' npm'
3336
34373538 run : |
@@ -42,17 +45,27 @@ jobs:
4245
4346 - name : Bump packages
4447 env :
45- SKIP_BUMP_PACKAGES : " mongodb-compass"
48+ SKIP_BUMP_PACKAGES : ' mongodb-compass'
49+ # Do not remove this variable, bump-packages script uses this env var
50+ # to find the previous commit
51+ LAST_BUMP_COMMIT_MESSAGE : ' chore(release): bump package versions'
4652 run : npm run bump-packages
4753
4854 - name : Create Pull Request
4955 uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5
5056 with :
5157 token : ${{ steps.app-token.outputs.token }}
52- commit-message : " chore(release): bump package versions"
58+ commit-message : ' chore(release): bump package versions'
5359 branch : ci/bump-packages
54- title : " chore(release): bump package versions"
60+ title : ' chore(release): bump package versions'
5561 labels : no-title-validation
56- author : " ${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>"
57- body : |
58- - Bump package versions
62+ author : ' ${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>'
63+ body : >-
64+ <p>This PR is autogenerated and updates the version of every package
65+ in the monorepo that was changed since last publish. If you need to
66+ publish packages to update the version elsewhere, <strong>you can do
67+ this at your own convenience by just merging this PR</strong>.</p>
68+
69+ <p>After PR is merged, it starts an automatic publish process via
70+ GitHub Actions, you can follow the process <a href="https://github.com/mongodb-js/compass/actions/workflows/publish-packages.yaml">
71+ on the publish workflow page</a>.</p>
0 commit comments