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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@duell10111/semantic-release-calver

v0.2.2

Published

Semantic-Release plugin for versioning using CalVer spec.

Readme

@mrbernnz/semantic-release-calver

A plugin for semantic-release that supports Calendar Versioning (CalVer) for automated release management. CalVer uses date-based versioning, making it ideal for projects with frequent releases.

Features

  • 📅 CalVer Support: Adheres to the Calendar Versioning format (e.g. YYYY.MM.MINOR).
  • 🔧 Flexible Configuration: Customize versioning patterns to fit your project needs.
  • ✅ Integration Ready: Works seamlessly with semantic-release workflows.
  • ⚙️ TypeScript Support: Fully typed for better developer experience.
  • 🔒 Secure and Reliable: Built with best practices for automated release pipelines.

Installation

Install the package via npm or yarn:

# Using npm
npm install @mrbernnz/semantic-release-calver --save-dev

# Using yarn
yarn add @mrbernnz/semantic-release-calver --dev

Usage

Basic Setup

To use semantic-release-calver, configure it as a plugin in your release configuration file (e.g., release.config.js):

module.exports = {
  branches: ['main'],
  plugins:
    '@semantic-release/release-notes-generator',
    '@semantic-release/changelog',
    '@semantic-release/git',
    '@semantic-release/npm',
    '@mrbernnz/semantic-release-calver'

};

Example Release Workflow

With the configuration above, semantic-release-calver will:

  1. Generate a version in the specified CalVer format.
  2. Automatically create and publish releases using semantic-release.

API Reference

@mrbernnz/semantic-release-calver plugin

Returns

A string representing the calculated version (e.g., 2024.01.0).

Example

const calverPlugin = require('@mrbernnz/semantic-release-calver');

const version = calverPlugin.calculateNextVersion({
  lastVersion: '2023.12.2'
});

console.log(version); // Outputs: '2024.01.0'

Integration Examples

GitHub Actions

Here’s an example workflow to use semantic-release-calver in a GitHub Actions pipeline:

name: Release

on:
push:
branches: - main

jobs:
release:
runs-on: ubuntu-latest
steps: - name: Checkout repository
uses: actions/checkout@v3 - name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16 - name: Install dependencies
run: npm install - name: Run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Troubleshooting Guide

Common Issues

  1. Plugin Not Executing:
    • Verify that the plugin is correctly configured in the plugins array of your release.config.js.
  2. Authentication Errors:
    • Ensure you’ve set the necessary environment variables (GITHUB_TOKEN, GITLAB_TOKEN, NPM_TOKEN).

Contributing

Contributions are welcome to semantic-release-calver! Please follow these steps:

  1. Fork the repository and clone it locally.
  2. Create a feature branch:
git checkout -b feature/my-feature
  1. Commit your changes:
git commit -m "Add my feature"
  1. Push to your fork and submit a pull request.

License

This project is licensed under the MIT License.