Releases: JS-DevTools/npm-publish
Releases · JS-DevTools/npm-publish
v2.2.0
Features
- Allow
--ignore-scriptsto be disabled in order to support publish lifecycle hooks (#102)
v2.1.0
v2.0.0
Welcome to v2 of JS-DevTools/npm-publish! We've been doing some spring cleaning to fix all our (known) bugs and knock out some longstanding feature requests. This release has some breaking changes, so please read carefully!
BREAKING CHANGES
-
The
typeoutput is now an empty string instead ofnonewhen no release occurs- - if: ${{ steps.publish.outputs.type != 'none' }} + - if: ${{ steps.publish.outputs.type }} run: echo "Version changed!"
-
The
check-versionandgreater-version-onlyoptions have been removed and replaced withstrategy.- Use
strategy: all(default) to publish all versions that do not yet exist in the registry.with: token: ${{ secrets.NPM_TOKEN }} - check-version: true - greater-version-only: false + strategy: all - Use
strategy: upgradeto only publish versions that upgrade the selected tag.with: token: ${{ secrets.NPM_TOKEN }} - check-version: true - greater-version-only: true + strategy: upgrade check-version: falsehas been removed. You don't need this action if you're not checking already published versions; usenpmdirectly, instead.
- Use
-
The library and CLI now require Node v16 or later. They may technically work in earlier versions, but they're not tested in CI and you will have to tell your package manager to ignore the
enginesrequirement. -
The library and CLI no longer read the user's
~/.npmrcfile, so thetokenoption is now required.
Features
tag,access, andregistrynow fall back topublishConfiginpackage.json, if specified. (#36)- The
packageargument may now be a directory, and is passed tonpm publishas itspackage_specargument. (#59) - The
packageargument may also be a pre-packed.tgzarchive (#81)
Bug fixes
- The user's
~/.npmrcfile is no longer modified. Instead, a temporary.npmrcfile is used. (#15) npmis now always called with--ignore-scriptsfor security (#47)npmis now always called in the current working directory (#51)- The action was updated to use the Node v16 runtime. (#61)
- The
@actions/coredependency was upgraded to fix deprecation warnings. (#67)
v1.0.0
Initial release.