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

semantic-release-linear-app

v0.7.1

Published

Semantic-release plugin to update Linear issues with version labels

Readme

semantic-release-linear-app

A semantic-release plugin that adds version labels to Linear issues based on branch names.

Install

npm install --save-dev semantic-release-linear-app

Setup

  1. Add to your .releaserc.json:
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    "@semantic-release/release-notes-generator",
    ["semantic-release-linear-app", {
      "teamKeys": ["ENG", "FEAT"]
    }],
    "@semantic-release/github"
  ]
}
  1. Set environment variables:

    • LINEAR_TOKEN - Linear API key or OAuth token
    • GITHUB_TOKEN - For finding PRs (usually already set in CI)
  2. Use branch names with Linear issue IDs:

feature/ENG-123-add-auth
bugfix/FEAT-456-fix-bug
ENG-789

Options

| Option | Default | Description | |--------|---------|-------------| | teamKeys | [] | Team keys to filter (e.g., ["ENG"]) | | labelPrefix | "v" | Prefix for version labels | | packageName | null | Package name for monorepos (e.g., "superdoc" creates superdoc-v1.0.0) | | removeOldLabels | true | Remove previous version labels | | addComment | false | Add release comment to issues | | commentTemplate | See below | Custom comment template with placeholders | | dryRun | false | Preview without making changes |

Monorepo Support

For monorepos with multiple packages, use the packageName option to create package-specific labels:

{
  "plugins": [
    ["semantic-release-linear-app", {
      "teamKeys": ["SD"],
      "packageName": "superdoc"
    }]
  ]
}

This creates labels like superdoc-v1.2.3 instead of just v1.2.3.

Comment Templates

When addComment is enabled, you can customize the comment format using commentTemplate:

{
  "plugins": [
    ["semantic-release-linear-app", {
      "teamKeys": ["SD"],
      "packageName": "cli",
      "addComment": true,
      "commentTemplate": "Released in {package} {releaseLink} {channel}"
    }]
  ]
}

Available placeholders:

| Placeholder | Example | Description | |-------------|---------|-------------| | {version} | 1.0.0 | Version number | | {channel} | (next channel) | Release channel (empty for stable) | | {package} | **cli** | Bold package name | | {packageName} | cli | Raw package name | | {releaseUrl} | https://github.com/.../releases/tag/cli-v1.0.0 | GitHub release URL | | {releaseLink} | [1.0.0](https://...) | Markdown link to release | | {gitTag} | cli-v1.0.0 | Git tag |

Note: Placeholders are raw values. Add spaces in your template as needed—multiple spaces are automatically collapsed.

Default template: Released in {package} v{releaseLink} {channel}

Example output: Released in **cli** v[1.0.0](https://github.com/org/repo/releases/tag/cli-v1.0.0) (next channel)

How it Works

flowchart LR
    A[Release Commit] --> B[GitHub PR]
    B --> C[Branch Name]
    C --> D[Issue ID]
    D --> E[Linear Label]

    subgraph semantic-release
        V[verifyConditions] --> S[success]
    end

    V -.- |validate tokens| A
    S -.- |apply labels| E
  1. verifyConditions - Validates LINEAR_TOKEN and tests API connection
  2. success - After release:
    • Queries GitHub for PRs associated with release commits
    • Extracts issue IDs from branch names (e.g., ENG-123)
    • Creates and applies version label to each issue

Labels

Labels are color-coded by release type:

| Type | Color | Example | |------|-------|---------| | Major | Red | v2.0.0 | | Minor | Orange | v1.1.0 | | Patch | Green | v1.0.1 | | Prerelease | Purple | v1.0.0-beta.1 |

Authentication

Set LINEAR_TOKEN with either:

  • Personal API key (starts with lin_api_) - used directly
  • OAuth access token - automatically adds Bearer prefix

For OAuth setup, see Linear OAuth documentation.

License

MIT