PerlNavigator
PerlNavigator copied to clipboard
publish npm fetchable package automatically
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.
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 I think packaging the package.json would likely work. I'll test it on my end before saying anything definitive.
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.
This is now complete. I still need to add tests and vscode marketplace pushing, but the release workflow is now publishing to NPM. Thanks!