Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow publishing private packages #569

Closed

Conversation

gakonst
Copy link

@gakonst gakonst commented Apr 13, 2021

Supersedes #420.

We get all packages (instead of just the public ones) and we only publish the public ones, while returning published = true for everything else, so that they can be used in the tagging step after publishing.

Context: #399, #478 (comment)

cc @mitchellhamilton

@atlassian-cla-bot
Copy link

atlassian-cla-bot bot commented Apr 13, 2021

Hooray! All contributors have signed the CLA.

@changeset-bot
Copy link

changeset-bot bot commented Apr 13, 2021

🦋 Changeset detected

Latest commit: 2147633

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

gakonst added a commit to ethereum-optimism/optimism that referenced this pull request Apr 14, 2021
This patch maintains our changesets installation up to date with the change
proposed in changesets/changesets#569
@gakonst gakonst force-pushed the feat/publish-private-packages branch from 438484f to 2147633 Compare April 14, 2021 09:06
@gakonst
Copy link
Author

gakonst commented May 13, 2021

Hi @mitchellhamilton is there any feedback for this PR?

log("New tag: ", tag);
await git.tag(tag, cwd);
} else {
log("Skipping existing tag: ", tag);
Copy link
Member

Choose a reason for hiding this comment

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

When this branch could be chosen? Tag conflict seems like a problem and not something that should be silently silenced

@@ -34,6 +34,13 @@ async function tag(tagStr: string, cwd: string) {
return gitCmd.code === 0;
}

async function tagExists(tagStr: string) {
Copy link
Member

Choose a reason for hiding this comment

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

this is a new export from the @changesets/git package so a changeset should be created to account for that

InoMurko pushed a commit to omgnetwork/optimism that referenced this pull request May 25, 2021
This patch maintains our changesets installation up to date with the change
proposed in changesets/changesets#569
@andrewabest
Copy link

This change would be super useful for us - we want to use changesets to manage release notes and versioning for node packages that are not published to npm.

If changeset publish creates and outputs tags for private packages, the GitHub Action will proceed to create a GitHub release for the change with the appropriate release notes, which is our goal.

@JakeGinnivan
Copy link
Contributor

Hey @mitchellhamilton @Andarist just giving this a friendly bump, i'm just setting up another project and would love to move away from my patch-package approach :)

@JakeGinnivan
Copy link
Contributor

Just playing with this, it still checks NPM for the existence of the private packages through.

With my PR for public NPM packages I used that status, otherwise I used tags. I think it should clearly separate the logic for each.

@Andarist
Copy link
Member

Andarist commented Oct 1, 2022

This got superseded by #662

@Andarist Andarist closed this Oct 1, 2022
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.

None yet

4 participants