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
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ You can set any or all of the following input parameters:
78
78
|`registry` |string |no |https://registry.npmjs.org/ |The NPM registry URL to use
79
79
|`package` |string |no |./package.json |The path of your package.json file
80
80
|`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
82
82
83
83
84
84
@@ -104,6 +104,7 @@ steps:
104
104
|`type` |string |The type of version change that occurred ("major", "minor", "patch", etc.). If there was no version change, then type will be "none".
105
105
|`version` |string |The version that was published
106
106
|`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
107
108
108
109
109
110
@@ -139,6 +140,7 @@ As shown in the example above, you can pass options to the `npmPublish()` functi
139
140
|`registry` |string |https://registry.npmjs.org/ |The NPM registry URL to use
140
141
|`package` |string |./package.json |The path of your package.json file
141
142
|`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
142
144
|`quiet` |boolean |false |Suppress console output from NPM and npm-publish
143
145
|`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.
144
146
@@ -151,6 +153,7 @@ The `npmPublish()` function asynchronously returns an object with the following
151
153
|`package` |string |The name of the NPM package that was published
152
154
|`version` |string |The version number that was published
153
155
|`oldVersion` |string |The version number that was previously published to NPM
156
+
|`dryRun` |boolean |Indicates whether NPM was run in "dry run" mode
154
157
155
158
156
159
@@ -195,7 +198,8 @@ options:
195
198
196
199
--help, -h Show help
197
200
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
199
203
200
204
package_path The absolute or relative path of the NPM package to publish.
201
205
Can be a directory path, or the path of a package.json file.
0 commit comments