Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smnbbrv/npm-publish-nexus
Safe NPM package publish for Nexus
https://github.com/smnbbrv/npm-publish-nexus
Last synced: about 1 month ago
JSON representation
Safe NPM package publish for Nexus
- Host: GitHub
- URL: https://github.com/smnbbrv/npm-publish-nexus
- Owner: smnbbrv
- Created: 2018-02-06T12:37:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T21:29:11.000Z (over 1 year ago)
- Last Synced: 2024-11-29T09:17:59.542Z (about 2 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm-publish-nexus
Safe NPM package publish for Nexus.
> DEPRECATED: the *Disallow override* option is fixed now, so no need in this plugin anymore. Still, it works.
## Why
The *Disallow override* option does not work properly on Nexus (at least for the scoped packages).
That's why to integrate the publishing into CI requires a validation of the package version existence before publishing.
This package does it.
## Installation
```bash
npm i -D npm-publish-nexus
```## Usage
Setup variables
```bash
export NPM_NEXUS_PUBLISHER_EMAIL=
export NPM_NEXUS_PUBLISHER_AUTH=
```Then add to your *package.json* `scripts` a script with
```bash
npm-publish-nexus --domain=https://example.com --repo=npm-local
```where domain is the domain where the Nexus is hosted and repo is the name of the local repository.
Finally, run the script and you will see an output similar to
```bash
The following versions are found for package @bla/bla:
- @bla/[email protected]
- @bla/[email protected]
- @bla/[email protected]
- @bla/[email protected]
The current version is already deployed, skipping publishing...
```## License
MIT