Content-Length: 290215 | pFad | https://github.com/npm/npm/issues/8402

02 Lifecycle: script that runs just before (and only before) `npm publish` · Issue #8402 · npm/npm · GitHub
Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Lifecycle: script that runs just before (and only before) npm publish #8402

@olalonde

Description

@olalonde

It would be nice to have a script that runs only when running npm publish. For example, this would allow developers to compile files (coffeescript, babel, etc), automatically tag a git repository with the package's version, generate documentation, run tests, etc.

There is currently a trigger called prepublish but it also runs on npm install which is not ideal for the use cases mentioned (see #3059).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/npm/npm/issues/8402

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy