Skip to content

feat: allow publishing private packages - #569

Closed
gakonst wants to merge 3 commits into
changesets:mainfrom
gakonst:feat/publish-private-packages
Closed

gakonst wants to merge 3 commits into
changesets:mainfrom
gakonst:feat/publish-private-packages

Conversation

@gakonst

@gakonst gakonst commented Apr 13, 2021 •

Copy link
Copy Markdown

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

atlassian-cla-bot Bot commented Apr 13, 2021 •

Copy link
Copy Markdown

Hooray! All contributors have signed the CLA.

@changeset-bot

changeset-bot Bot commented Apr 13, 2021 •

Copy link
Copy Markdown

🦋 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

gakonst commented May 13, 2021

Copy link
Copy Markdown
Author

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
Copy Markdown
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

Comment thread packages/git/src/index.ts
return gitCmd.code === 0;
}

async function tagExists(tagStr: string) {

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

Andarist commented Oct 1, 2022

Copy link
Copy Markdown
Member

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.

4 participants