You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added support NPM's `--tag` argument, which allows packages to be published to a named tag that can then be installed using `npm install <package-name>@<tag>`
12
9
13
10
- Added support for NPM's `--access` argument, which controls whether scoped packages are publicly accessible, or restricted to members of your NPM organization
- NPM-Publish can now successfully publish a brand-new package to NPM. Previously it failed because it couldn't determine the previous package version. ([PR #12](https://github.com/JS-DevTools/npm-publish/pull/12) from [@ZitRos](https://github.com/ZitRos))
- FIX: The configured NPM registry and token are now used _all_ NPM commands, not just for publishing. This ensures that npm-publish works with private packages and custom registries
Contributions, enhancements, and bug-fixes are welcome! [Open an issue](https://github.com/JS-DevTools/npm-publish/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/npm-publish/pulls).
4
+
5
+
## Building Locally
6
+
7
+
You should be using Node.js v16 or later to build this project locally
|`token` |string |**required** |The NPM auth token to use for publishing
69
-
|`registry` |string |https://registry.npmjs.org/ |The NPM registry URL to use
70
-
|`package` |string |./package.json |The path of your package.json file
71
-
|`tag` |string |"latest" |The tag to publish to. This allows people to install the package using `npm install <package-name>@<tag>`.
72
-
|`access` |string |"public" for non-scoped packages. "restricted" for scoped packages.|Determines whether the published package should be publicly visible, or restricted to members of your NPM organization.
73
-
|`dry-run` |boolean |false |Run NPM publish with the `--dry-run` flag to prevent publication
74
-
|`check-version` |boolean |true |Only publish to NPM if the version number in `package.json` differs from the latest on NPM
75
-
|`greater-version-only`|boolean |false |Only publish to NPM if the version number in `package.json` is greater than the latest on NPM |
| `token` | string | **required** | The NPM auth token to use for publishing |
69
+
| `registry` | string | https://registry.npmjs.org/ | The NPM registry URL to use |
70
+
| `package` | string | ./package.json | The path of your package.json file |
71
+
| `tag` | string | "latest" | The tag to publish to. This allows people to install the package using `npm install <package-name>@<tag>`. |
72
+
| `access` | string | "public" for non-scoped packages. "restricted" for scoped packages. | Determines whether the published package should be publicly visible, or restricted to members of your NPM organization. |
73
+
| `dry-run` | boolean | false | Run NPM publish with the `--dry-run` flag to prevent publication |
74
+
| `check-version` | boolean | true | Only publish to NPM if the version number in `package.json` differs from the latest on NPM |
75
+
| `greater-version-only` | boolean | false | Only publish to NPM if the version number in `package.json` is greater than the latest on NPM |
77
76
78
77
## Output Variables
79
78
@@ -211,26 +210,6 @@ package_path The absolute or relative path of the NPM package to publis
211
210
Defaults to the current directory.
212
211
```
213
212
214
-
## Contributing
215
-
216
-
Contributions, enhancements, and bug-fixes are welcome! [Open an issue](https://github.com/JS-DevTools/npm-publish/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/npm-publish/pulls).
0 commit comments