mpetuska / npm-publish

Gradle plugin for NPM package publishing. Allows for arbitrary publishing as well as seamless integration with Kotlin JS/MPP plugins.
https://npm-publish.petuska.dev
Apache License 2.0
126 stars 10 forks source link

Support specifying a distribution tag when publishing an npm package #115

Closed frett closed 1 year ago

frett commented 1 year ago

The npm publish command supports specifying a distribution tag when publishing. The distribution tag defaults to latest if no tag is specified. see: https://docs.npmjs.com/adding-dist-tags-to-packages

It would be nice if we could programmatically configure the tag to use within the gradle plugin. Or as an alternative provide a mechanism to specify additional arbitrary parameters to send to the npm action.

The current workaround is to manually manage distribution tags after you publish using the npm dist-tag action.

mpetuska commented 1 year ago

Sounds useful! I try to put some time aside to add it tgis weekend.