Skip to content

Commit 6abc5c2

Browse files
Documented the new dry-run option
1 parent ab89df5 commit 6abc5c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ You can set any or all of the following input parameters:
7878
|`registry` |string |no |https://registry.npmjs.org/ |The NPM registry URL to use
7979
|`package` |string |no |./package.json |The path of your package.json file
8080
|`check-version` |boolean |no |true |Only publish to NPM if the version number in `package.json` differs from the latest on NPM
81-
|`dry-run` |boolean |no |false |Run NPM publish with the `--dry-run` flag to prevent publication.
81+
|`dry-run` |boolean |no |false |Run NPM publish with the `--dry-run` flag to prevent publication
8282

8383

8484

@@ -104,6 +104,7 @@ steps:
104104
|`type` |string |The type of version change that occurred ("major", "minor", "patch", etc.). If there was no version change, then type will be "none".
105105
|`version` |string |The version that was published
106106
|`old-version` |string |The version number that was previously published to NPM
107+
|`dry-run` |boolean |Indicates whether NPM was run in "dry run" mode
107108

108109

109110

@@ -139,6 +140,7 @@ As shown in the example above, you can pass options to the `npmPublish()` functi
139140
|`registry` |string |https://registry.npmjs.org/ |The NPM registry URL to use
140141
|`package` |string |./package.json |The path of your package.json file
141142
|`checkVersion` |boolean |true |Only publish to NPM if the version number in `package.json` differs from the latest on NPM
143+
|`dryRun` |boolean |false |Run NPM publish with the `--dry-run` flag to prevent publication
142144
|`quiet` |boolean |false |Suppress console output from NPM and npm-publish
143145
|`debug` |function |no-op |A function to log debug messages. You can set this to a custom function to receive debug messages, or just set it to `console.debug` to print debug messages to the console.
144146

@@ -151,6 +153,7 @@ The `npmPublish()` function asynchronously returns an object with the following
151153
|`package` |string |The name of the NPM package that was published
152154
|`version` |string |The version number that was published
153155
|`oldVersion` |string |The version number that was previously published to NPM
156+
|`dryRun` |boolean |Indicates whether NPM was run in "dry run" mode
154157

155158

156159

@@ -195,7 +198,8 @@ options:
195198

196199
--help, -h Show help
197200

198-
--dry-run Pass the `--dry-run` flag to NPM
201+
--dry-run Don't actually publish to NPM, but report what would have
202+
been published
199203

200204
package_path The absolute or relative path of the NPM package to publish.
201205
Can be a directory path, or the path of a package.json file.

0 commit comments

Comments
 (0)