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

Package & publish todo example to package registry for testing #5

Closed
Tracked by #6
Yukaii opened this issue Jan 11, 2023 · 3 comments
Closed
Tracked by #6

Package & publish todo example to package registry for testing #5

Yukaii opened this issue Jan 11, 2023 · 3 comments

Comments

@Yukaii
Copy link
Collaborator

Yukaii commented Jan 11, 2023

  • Build the existing package with form (Or just use local packages for testing)
  • Use libnpmpublish to write a sample script that uploads to github registry (Or upload it manually)
@Yukaii Yukaii mentioned this issue Jan 11, 2023
26 tasks
@Yukaii
Copy link
Collaborator Author

Yukaii commented Jan 21, 2023

Modify raycast build output's package.json with:

- "name": "todo-list",
+ "name": "@BlastLauncher/todo-list",
+ "repository": "https://github.com/BlastLauncher/extensions-registry.git",

With new npmrc config:

@BlastLauncher:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=xxxxxxx

@Yukaii
Copy link
Collaborator Author

Yukaii commented Jan 21, 2023

And the package is now available at https://github.com/BlastLauncher/extensions-registry/pkgs/npm/todo-list

I'll stop here and start working on extension marketplace.

@Yukaii
Copy link
Collaborator Author

Yukaii commented Jan 21, 2023

To publish package changes from mirror of raycast/extensions repo:

  1. For new extensions, just run publish
  2. For updated extension, fetch latest version and bump minor version and publish it
  3. If package name has changed, remove the old version and publish the new one.

@Yukaii Yukaii closed this as completed Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant