npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@junyiqin/auto-release

v1.0.0

Published

auto release for everything

Downloads

6

Readme

@junyiqin/auto-release

简介

在发布npm包或者一些符合npm规范的私有项目release时,需要手动键入一系列脚本来推送代码、标记git tag以及发布项目到npm或私有npm中,本工具做了这些动作的集成,是一个方便实用的轻量级release工具。

功能

  • 提供符合npm规范的版本号,支持major,minor,patch,premajor,preminor,prepatch,prerelease七种类型release版本号可选
  • 自动更新包版本号、changelog(依赖conventional-changelog)
  • 支持可选是否发布前构建,若需要请在使用方项目package.json中提供build脚本
  • 自动合并代码至主分支
  • 自动标记git tag
  • 支持可选是否发布至npm

如何使用

安装

npm:

npm install @junyiqin/auto-release -D

yarn:

yarn add @junyiqin/auto-release -D

使用

import release from '@junyiqin/auto-release';

const currentVersion = '1.2.3'
release({ currentVersion });

参数

| 属性 | 简介 | 是否必填 | 类型 | 默认值 | | :--: | ---- |:------: | :--: | :----: | | currentVersion | 使用方项目当前版本号,e.g:1.2.3 | 是 | string | - | | npmRegistry | npm源地址 | 否 | string | - | | npmAuthToken | npm login authtToken,可在.npmrc中查看获取 | 否 | string | - | | mainBranch | 使用方项目git主分支 | 否 | string | master | | needPublish | 是否需要发布至npmRegistry对应的npm中 | 否 | boolean | false |

注意:

  • 若需要发布至npm,npmRegistry、npmAuthToken、needPublish必填,且needPublish为true
  • 使用了authToken是避免输入账号密码登录npm