3.1.3 • Published 2 years ago
publish-if-not-published v3.1.3
publish-if-not-published
Publish a package if the current version isn't already published.
Installation
yarn add --dev publish-if-not-published
Usage
Run publish-if-not-published
and pass any additional arguments that you would have passed to npm publish
.
"$(yarn bin)/publish-if-not-published" -- --otp 123456 --dry-run
Tags
When specifing a non-latest tag to be published, a suffix should also be appended to the version so as not to use up a semver version on a prerelease.
{
"name": "package",
"version": "2.0.0-next.0"
}
"$(yarn bin)/publish-if-not-published" -- --tag next
publish-if-not-published
checks whether it has been called with a non-latest tag, and the version of the package to prevent:
- Accidentally publishing a tagged release with a non-suffixed version, or
- Accidentally publishing a latest release with a suffixed version.
These checks can be turned off with the --no-tag-check
flag:
"$(yarn bin)/publish-if-not-published" --no-tag-check -- --tag rc
3.1.3
2 years ago
3.1.2
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.0
2 years ago
2.2.1
2 years ago
3.0.0-preview.0
2 years ago
2.2.0
4 years ago
2.1.0
4 years ago
2.0.0
4 years ago
2.0.0-preview.3
4 years ago
2.0.0-preview.2
4 years ago
2.0.0-preview.1
4 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.1
6 years ago
0.0.0
6 years ago