Repository navigation
ci: add release workflow using release-please - #867
Conversation
|
Title should be |
michaelfaith
left a comment
There was a problem hiding this comment.
Love it! Just one minor change, and a suggestion to avoid possible race condition. In addition to those comments, I'd recommend tweaking the CI workflow triggers, similar to what's in michaelfaith/eslint-plugin-package-json#1497, so that adding a ci label to the release PR will trigger CI (removing the need for the token assignment in the release workflow)
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
This is lovely, I'm looking forward to trying it out!
I think everything @michaelfaith asked for is resolved, and I have nothing more to add. ✅ ![]()
|
There are a couple more things that I think will need to happen before this can be merged. For one, If you want this PR to close #805, then it should include new CHANGELOG.md files for each package. The second thing is, somebody (probably @JoshuaKGoldberg?) will need to add a git / repo tag for each packages' latest version (minimally), in the form that |
|
Also, @JoshuaKGoldberg how do you feel about having // if true, create separate pull requests for each package instead of a
// single manifest release pull request
// absence defaults to false and one pull request will be raised
"separate-pull-requests": false, |
michaelfaith
left a comment
There was a problem hiding this comment.
Sorry for piecemealing some of this out; I was just thinking more about the complete story and there are a couple more things (listed above) that would need to happen before this can merge.
|
Ok coming back to this: @marcalexiei @michaelfaith are we ready to merge, do you think? |
I believe there are some tactical decisions and repo changes (e.g. create initial tags) that we need from you before this can be merged: #867 (comment) (Without at least deciding the tag format and creating those, release-please will create a big mega release pr for stuff that's already been released, though i guess that could just be closed if we wanted to merge this and do the rest as a followup...) |
f94e18f to
8f6f2c7
Compare
michaelfaith
left a comment
There was a problem hiding this comment.
Looks good to me! Thanks for sticking with it. I did make one minor / non-blocking suggestion. But otherwise, @JoshuaKGoldberg this should be ready for merge, unless you have additional feedback.
Once it does merge, I can keep an eye on what the workflow does, to ensure it's behaving as expected.
| # will publish all workspace packages with versions not yet present on the registry | ||
| # (so it only publishes packages whose versions were bumped and merged) | ||
| - name: Publish to npm | ||
| run: pnpm --filter "./packages/*" publish --no-git-checks |
There was a problem hiding this comment.
Nit: it might be cleaner to use --recursive/-r here (https://pnpm.io/cli/recursive)
| run: pnpm --filter "./packages/*" publish --no-git-checks | |
| run: pnpm -r publish --no-git-checks |
There was a problem hiding this comment.
I reverted this, I recalled why I used --filter: to avoid running this in the root package.json scope.
1fea626 to
8f6f2c7
Compare
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
Thanks for this, I really appreciate it! ❤️
|
@all-contributors please add @marcalexiei for infra.
|
|
I've put up a pull request to add @marcalexiei! 🎉 |
Adds @marcalexiei as a contributor for infra. This was requested by JoshuaKGoldberg [in this comment](#867 (comment)) --------- Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
|
@allcontributors add michaelfaith as a contributor for infra |
|
https://github.com/JoshuaKGoldberg/sentences-per-line/actions/runs/21229941569/job/61086011634 Looks like we missed the |
|
@michaelfaith already contributed before to infra |
|
😩 I swear I'd applied it! Just re-did. |
|
Hmm, looks like #920 has a bunch of the releases listed anyway. Let's see what happens... |
Oh no, not at the repo level, but in the workflow. This PR has permissions:
contents: read
id-token: write # Required for OIDCIt should be permissions:
contents: write
pull-requests: write
id-token: write # Required for OIDC |
|
And some more joy from https://github.com/JoshuaKGoldberg/sentences-per-line/actions/runs/21230070481/job/61086418201: |
Oh, hmm, nm, that was a different job. The fact that the jobs aren't in execution order (but instead in alpha order) keeps throwing me off. Not sure what that error was for then. |
I think it might be because |

PR Checklist
status: accepting prsOverview
ERR_PNPM_TRUST_DOWNGRADE#866Add
release.ymlworkflow usingrelease-pleaseto automate package release.I'll add review comments to highlight key points, so we can discuss changes easily.