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

Publish to VS Marketplace #40

Merged
merged 20 commits into from
Mar 21, 2021
Merged

Publish to VS Marketplace #40

merged 20 commits into from
Mar 21, 2021

Conversation

asbjornu
Copy link
Collaborator

@asbjornu asbjornu commented Mar 16, 2021

Tweaks the GitHub Actions workflow to publish the extension to the VS Marketplace.

Resolves #38.

Update package.json metadata to reflect the move from @mrmlnc to @remarkjs.
@asbjornu asbjornu force-pushed the feature/gh-38_vs_marketplace branch 9 times, most recently from cf73e1e to b0127ef Compare March 16, 2021 14:12
Modify the GitHub Actions workflow by adding:

- gitversion job
- setup-node step
- version step
- cache step
- publish step
@asbjornu asbjornu force-pushed the feature/gh-38_vs_marketplace branch from b0127ef to c31053d Compare March 16, 2021 14:23
@wooorm
Copy link
Member

wooorm commented Mar 16, 2021

nice!

Base automatically changed from master to main March 16, 2021 15:28
@asbjornu asbjornu force-pushed the feature/gh-38_vs_marketplace branch from 7fc923d to 529f8ed Compare March 17, 2021 00:23
@asbjornu asbjornu force-pushed the feature/gh-38_vs_marketplace branch from 529f8ed to 1fbdb3f Compare March 17, 2021 00:31
@asbjornu
Copy link
Collaborator Author

asbjornu commented Mar 17, 2021

@wooorm, I need to add a Personal Access Token or have one of you create one and add it as the GitHub secret VSCE_TOKEN. Secrets are only available for repository administrators.

@asbjornu asbjornu force-pushed the feature/gh-38_vs_marketplace branch 4 times, most recently from 75654d4 to df913db Compare March 17, 2021 02:19
@wooorm
Copy link
Member

wooorm commented Mar 17, 2021

It looks like an azure org is needed for that? So that is a different one from unifiedjs on the marketplace? And I need to set that up?

@asbjornu
Copy link
Collaborator Author

It looks like an azure org is needed for that?

Yes, I've created unifiedjs on Azure DevOps and invited you, @ChristianMurphy and @JounQin to it.

So that is a different one from unifiedjs on the marketplace?

Pretty silly, but yes. 🙄

And I need to set that up?

No, I have.

@wooorm
Copy link
Member

wooorm commented Mar 17, 2021

Screen Shot 2021-03-17 at 11 47 42

🤷‍♂️

@asbjornu
Copy link
Collaborator Author

I think you should receive an e-mail invitation you need to accept, @wooorm.

@asbjornu
Copy link
Collaborator Author

Thank you so much for the code review, @joebowbeer! It still fails, however:

npm ERR! code E401
npm ERR! Unable to authenticate, need: Basic realm="GitHub Package Registry"

Ideas?

Copy link
Contributor

@joebowbeer joebowbeer left a comment

Choose a reason for hiding this comment

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

See suggested change.

.github/workflows/build.yml Outdated Show resolved Hide resolved
Co-authored-by: Joe Bowbeer <joe.bowbeer@gmail.com>
Copy link
Contributor

@joebowbeer joebowbeer left a comment

Choose a reason for hiding this comment

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

The current version might be as good as it gets without editing package.json.

But this is one more thing to try.

However, I'm rethinking my assumption that this is possible without editing package.json.

The published package includes package.json. Having a package published as scoped claim in its package.json that it is unscoped may be troublesome.

.github/workflows/build.yml Outdated Show resolved Hide resolved
@wooorm
Copy link
Member

wooorm commented Mar 19, 2021

You're there, but it doesn't look like you've accepted the invitation.

No, the Microsoft communication was to have you added to the VSCE Marketplace. That's all done and seems to be working now.

When I accept, I get that 401 from #40 (comment).
I believe Joun was getting the same results.
As I can’t get in there, and the Get a PAT link you shared requires an org, that’s why I thought I had to create a throwaway one

Co-authored-by: Joe Bowbeer <joe.bowbeer@gmail.com>
@asbjornu
Copy link
Collaborator Author

asbjornu commented Mar 19, 2021

When I accept, I get that 401 from #40 (comment).

It's really stupid, but as explained in this Stack Overflow answer, please try to open unifiedjs in an incognito Window or a separate browser and sign in with the invited e-mail address.

As I can’t get in there, and the Get a PAT link you shared requires an org, that’s why I thought I had to create a throwaway one

Yeah, I get it. I just can't yet accept that Azure DevOps is so useless that it's impossible to invite users to the organization. Let's please give this another go.

@asbjornu
Copy link
Collaborator Author

asbjornu commented Mar 19, 2021

But this is one more thing to try.

Thanks, @joebowbeer! It still fails, unfortunately:

npm ERR! code E404
npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/vscode-remark

However, I'm rethinking my assumption that this is possible without editing package.json.

The published package includes package.json. Having a package published as scoped claim in its package.json that it is unscoped may be troublesome.

Yeah, that makes sense. Sad that unscoped packages aren't supported by GPR, though.

@wooorm
Copy link
Member

wooorm commented Mar 20, 2021

Yeah, I get it. I just can't yet accept that Azure DevOps is so useless that it's impossible to invite users to the organization. Let's please give this another go.

I tried again. Private window. And different browser. To no avail.
It might be that my account is connected through GH.

I also got this one, weirdly. But I solved that by adding a phone number:
Screen Shot 2021-03-20 at 09 41 04

It’s unrelated to these codes, right? #28 (comment)

Could you maybe remove me from the org, and add me again? (i.e., the age old: have you tried turning it off and on again 😅)
Edit: and it seems that it might work: https://developercommunity.visualstudio.com/t/github-login-fails-with-tf400813-the-user-windows/1141626#T-N1144704

@asbjornu
Copy link
Collaborator Author

It’s unrelated to these codes, right? #28 (comment)

Yes, those codes were used to have you invited to the VSCE Marketplace.

Could you maybe remove me from the org, and add me again? (i.e., the age old: have you tried turning it off and on again 😅)

Sure, I've just removed and added you back to the organization. I hope that helps! 🤞🏼

@wooorm
Copy link
Member

wooorm commented Mar 20, 2021

Sure, I've just removed and added you back to the organization. I hope that helps! 🤞🏼

It didn’t 😭

@wooorm
Copy link
Member

wooorm commented Mar 20, 2021

Meanwhile, to get this unblocked, I’m guessing that you can create such a token and I can add it. Could you DM/email me one?

@asbjornu
Copy link
Collaborator Author

asbjornu commented Mar 20, 2021

Sure, I've just removed and added you back to the organization. I hope that helps! 🤞🏼

It didn’t 😭

😭

Meanwhile, to get this unblocked, I’m guessing that you can create such a token and I can add it. Could you DM/email me one?

Sure, I'll pop you an e-mail.

@asbjornu asbjornu marked this pull request as ready for review March 20, 2021 22:31
@asbjornu asbjornu requested a review from wooorm March 20, 2021 22:31
.github/gitversion.yml Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
@asbjornu asbjornu merged commit abcb185 into main Mar 21, 2021
@asbjornu asbjornu deleted the feature/gh-38_vs_marketplace branch March 21, 2021 15:09
@JounQin
Copy link
Member

JounQin commented Mar 22, 2021

@wooorm Did you add the VSCE_TOKEN to vscode-mdx too?

@wooorm
Copy link
Member

wooorm commented Mar 22, 2021

I just added a VSCE_TOKEN token there

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

Successfully merging this pull request may close these issues.

Publish extension to the VS Marketplace
4 participants