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
Major releases of the action and libraries may contain breaking changes, documented here.
286
287
For more detailed change logs, see [releases][].
287
288
288
-
### v2 to v3
289
+
### v3 to v4
289
290
290
-
The v3 release does not require any changes to how you use `npm-publish` from `v2`. The version of Node.js used by the action was updated to v20 due to GitHub Action's [deprecation of Node.js v16][node16-deprecation]. The minimum required version of Node.js for the library and CLI remains v16.
291
+
The `v4` release does not require any changes to how you use the `npm-publish` action from `v3`. The action was updated to Node 24 / npm 11.
292
+
293
+
In the library and CLI, support for Node 16 and Node 18 was dropped in `v4`, and the library API was switched to ESM-only. Library users should switch to ESM or update Node to a version with support for [loading ES modules using `require`][esm-require].
The `v4` release does not require any changes to how you use the `npm-publish` action from `v2`. The action was updated to Node 20 in `v3` due to GitHub Action's [deprecation of Node 16][node16-deprecation], and then updated to Node 24 in `v4`.
300
+
301
+
In the library and CLI, support for Node 16 and Node 18 was dropped in `v4`, and the library API was switched to ESM-only. Library users should switch to ESM or update Node to a version with support for [loading ES modules using `require`][esm-require].
The v2 release made several breaking changes to inputs, outputs, and behaviors that were present in `v1`. The examples below focus on the action, but the same changes are applicable to the library and CLI, too.
297
308
298
-
#### v2 option changes
309
+
In the library and CLI, support for Node 16 and Node 18 was dropped in `v4`, and the library API was switched to ESM-only. Library users should switch to ESM or update Node to a version with support for [loading ES modules using `require`][esm-require].
310
+
311
+
#### option changes
299
312
300
313
The `check-version` and `greater-version-only` boolean options were replaced with the `strategy` option:
301
314
@@ -335,7 +348,7 @@ The `check-version` and `greater-version-only` boolean options were replaced wit
The `type` output is now an empty string instead of `'none'` when no release occurs
341
354
@@ -345,7 +358,7 @@ The `type` output is now an empty string instead of `'none'` when no release occ
345
358
+ if: ${{ steps.publish.outputs.type }}
346
359
```
347
360
348
-
#### v2 behavior changes
361
+
#### behavior changes
349
362
350
363
The `--ignore-scripts` option is now passed to `npm publish` as a security precaution. If you define any publish lifecycle scripts - `prepublishOnly`, `prepack`, `prepare`, `postpack`, `publish`, `postpublish` - we recommend you run that logic as a separate explicit build step.
0 commit comments