1.0.7 • Published 4 months ago

@dobuki/auto-publish v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

auto-publish

npm version

npm.io

Description

This package contains some scripts to auto-publish into npmjs. It uses "np", which does most of the work, but sometimes "np" fails due to various pre-requisites not met. This package just solves that.

  • First, it's going to auto-commit just in case there are still un-committed item.
  • It ensures the repo is "ssh", not "https://"
  • Then just executes np.

Usage

Install @dobuki/auto-publish into your package.json devDependencies.

# With bun
bun i -D @dobuki/auto-publish
# or with npm
npm i -D @dobuki/auto-publish

package.json:

{
  ...
  "devDependencies": {
    "@dobuki/auto-publish": "^1.0.5",
    ...
  },
}

Add the following entry into the scripts section:

{
  ...
  "scripts": {
    "auto-publish": "npm explore @dobuki/auto-publish -- bun run auto-publish \"$(pwd)\"",
    ...
  }
}

Then you can execute the script to publish straight into npmjs:

npm run auto-publish

Github Source

https://github.com/jacklehamster/auto-publish/

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago