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 🙏

© 2026 – Pkg Stats / Ryan Hefner

utils-bolierplate

v1.0.1

Published

一个用于使用 semantic-release 的启动模板,具有使用 semantic-release 进行自动版本控制和发布的功能。

Downloads

4

Readme

semantic-release-bolierplate

一个用于使用 semantic-release 的启动模板,具有使用 semantic-release 进行自动版本控制和发布的功能。

特性

  • 🚀 使用 semantic-release 自动发布
  • 📝 自动生成更新日志
  • 🔄 GitHub Actions 工作流程用于 CI/CD

开始使用

设置令牌

此模板使用 GitHub Actions 进行自动发布。您需要设置以下令牌:

1. GitHub 令牌 (GH_TOKEN)

  1. 创建 Github 个人访问令牌
  2. 点击 Generate new token
  3. 根据你的需求选择 Repository access
  4. 生成具有以下权限的新令牌:
    • Actions - read and write
    • Commit statuses - read and write
    • Contents - read and write
    • Deployments - read and write

2. NPM 令牌 (NPM_TOKEN)

  1. 访问 npmjs.com
  2. 导航到您的个人设置
  3. 选择 "Access Tokens"
  4. 创建新的访问令牌(注意把权限勾上)

3. Github设置环境变量

  1. 仓库中 访问 settings / secrets and variables / actions / Repository secrets
  2. 将刚刚的 GH_TOKEN 和 NPM_TOKEN 设置进去

4. 开启 GitHub Actions

  1. 参考本仓库的 release.yml

5. releaserc.json

{
  // 你自己的仓库地址
  repositoryUrl: '',
  branches: ["master"], // 指定在哪个分支下要执行发布操作
  plugins: [
    // 1. 解析 commit 信息,默认就是 Angular 规范
    "@semantic-release/commit-analyzer",
    // 2. 生成发布信息
    "@semantic-release/release-notes-generator",
    // 3. 把发布日志写入该文件
    [
      "@semantic-release/changelog",
      {
        changelogFile: "CHANGELOG.md", 
      },
    ],
    // 4. 发布 NPM
    "@semantic-release/npm", 
    // 5. changelog 和 vesion,需要重新写入 package.json
    [
      "@semantic-release/git",
      {
        assets: ["CHANGELOG.md", "package.json"],
      },
    ],
  ],
};

发布流程

此模板使用 semantic-release 进行自动版本控制和发布。当更改推送到主分支时,会自动触发发布流程。

提交消息应遵循 Conventional Commits 规范:

  • feat: ... - 新功能(次要版本发布)
  • fix: ... - 错误修复(补丁版本发布)
  • BREAKING CHANGE: ... - 破坏性更改(主要版本发布)