Skip to content

Conversation

@Noviny
Copy link
Contributor

@Noviny Noviny commented Sep 17, 2019

I think I've made things better but feel free to overrule any/all things

I think I've made things better but feel free to overrule any/all things
@Noviny Noviny requested a review from emmatown September 17, 2019 06:51
README.md Outdated
# The --otp=1 is to get around a bug in changesets
# It will be fixed in Changesets 2
publish: yarn release --otp=1
publish: yarn changeset publish
Copy link
Member

Choose a reason for hiding this comment

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

The original reasoning behind the publish option was to allow building before publish but this made me think more, I'm thinking this option should be removed and publish should happen if an NPM_TOKEN is provided and a build option should be added that's run before publish. Any thoughts on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So was the idea it would run yarn release which could be their own aliased yarn command doing whatever? But it assumes that they added changeset publish somewhere in the release because we pass in the otp?

Agree that it should run a build thing. I wouldn't mind explicitly setting a publish boolean (or setting a publish command being the trigger for this) to make when the bot will publish more explicit than implicit.

Also, since we don't need to pass anything to the changeset command, it might be worth having it run yarn pre-publish and then the bot run the changeset command? It cuts the bot off from random publish scripts in non-changeset repos but otherwise seems fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

setting a publish command being the trigger for this

checked code to confirm this is what it does, will document loudly that the existence of this triggers this.

Copy link
Member

Choose a reason for hiding this comment

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

So was the idea it would run yarn release which could be their own aliased yarn command doing whatever? But it assumes that they added changeset publish somewhere in the release because we pass in the otp?

Yes, that's correct. I know it's bad, it was a "this is a bad idea but I want this to work and doing this will make it work" thing.

Agree that it should run a build thing. I wouldn't mind explicitly setting a publish boolean (or setting a publish command being the trigger for this) to make when the bot will publish more explicit than implicit.

SGTM

Also, since we don't need to pass anything to the changeset command, it might be worth having it run yarn pre-publish and then the bot run the changeset command? It cuts the bot off from random publish scripts in non-changeset repos but otherwise seems fine.

As in make this action run a pre-publish script or the Changesets CLI?

README.md Outdated

```yml
name: Release
name: Version
Copy link
Member

Choose a reason for hiding this comment

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

My thoughts were release is the right word because it's the combination of version + sometimes build + publish (changesets/changesets#158) any objections to that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the one that was specifically 'copy this if you just want versioning' as opposed to the 'this one does versioning and commit' - to try and make the 'version' vs 'release' definition more consistent. Happy to move it back.

Copy link
Member

Choose a reason for hiding this comment

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

Hmmm, that makes sense. My thoughts on naming the things release was that I was planning on renaming this action to changesets/release-action so having some of the things named version and some release would be strange.

Maybe we could have a version action and a publish action but separating the things because of naming seems like not the best idea?

Copy link
Contributor Author

@Noviny Noviny Sep 18, 2019

Choose a reason for hiding this comment

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

I think sticking with Release is simply going to be easier (I don't want to make this two actions if we can help it)


meta-discussion: Is it better to have one changesets GH action that's configurable with multiple actions, vs having different things for different tasks. The way this was initially set up, I thought we were going to be getting one package, but we've since divided. What's the reasons?

Moving this to an issue to not bike-shed on this PR, as I think the PR is otherwise good to go.

@Noviny
Copy link
Contributor Author

Noviny commented Jan 24, 2020

Closing as old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants