PerlNavigator icon indicating copy to clipboard operation
PerlNavigator copied to clipboard

publish npm fetchable package automatically

Open WhoIsSethDaniel opened this issue 2 years ago • 3 comments

Now that there is an automatic build can it also publish the npm package whenever a build occurs?

For now the neovim installer depends on the npm package so any changes to the code should be published this way also.

I will also look at using the binaries that are being built. One reason I might not use the binaries is because the neovim installer has a very nice feature where it can show all the configuration elements iff there is a package.json in the installation directory. This gets lost if I use the binaries.

WhoIsSethDaniel avatar Mar 09 '22 23:03 WhoIsSethDaniel

Would it be helpful if I added the package.json file to the zip archive containing the executable, or is the package.json parsing only part of the npm installation method logic?

As for automatic NPM package publishing, we are looking into that as well. The eventual plan is to have our tests, NPM publishing, binary building, and VS Code Marketplace publishing all occur as part of release creation.

ketbra avatar Mar 11 '22 18:03 ketbra

@ketbra I think packaging the package.json would likely work. I'll test it on my end before saying anything definitive.

WhoIsSethDaniel avatar Mar 11 '22 20:03 WhoIsSethDaniel

I was wrong about how it gets the schema information. It's not clear to me how it can be kept always up-to-date the way it is being done. For now I don't think including the package.json in the archive is necessary.

WhoIsSethDaniel avatar Mar 11 '22 21:03 WhoIsSethDaniel

This is now complete. I still need to add tests and vscode marketplace pushing, but the release workflow is now publishing to NPM. Thanks!

bscan avatar Nov 13 '22 17:11 bscan