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

@ggascoigne/semantic-release-config

v3.2.6

Published

A shareable semantic-release configuration for projects.

Downloads

13

Readme

Semantic-Release Config

My personal shareable semantic-release configuration.

Install

pnpm add -D semantic-release @ggascoigne/semantic-release-config

Usage

.releaserc.json

{
  "extends": ["@ggascoigne/semantic-release-config"]
}

package.json

"scripts": {
  "bootstrap:ci": "pnpm install --frozen-lockfile --ignore-engines",
  "lint": "[your scripts go here]",
  "test": "[your scripts go here]",
  "build": "[your scripts go here]",
},

.github/workflows/release.yml:

name: Release

on:
  push:
    branches:
      - main

jobs:
  release:
    name: Release
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 16

      - name: Cache Node Modules
        uses: actions/cache@v3
        id: cache
        with:
          path: node_modules
          key: node-modules-${{ hashFiles('**/yarn.lock') }}

      - name: Install Dependencies
        if: steps.cache.outputs.cache-hit != 'true'
        run: yarn bootstrap:ci

      - name: Lint
        run: yarn lint

      - name: Test
        run: yarn test

      - name: Build
        run: yarn build

      - name: Release
        env:
          # optional - used by @ggascoigne/semantic-release-config/github
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # optional - used by @ggascoigne/semantic-release-config/github-npm
          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
        run: npx semantic-release

Github

Additionally publishes a GitHub release and publishes to the NPM Registry.

Note: Generate a publish access token from NPM and save as a secret titled NPM_TOKEN in your repository.

.releaserc.json

{
  "extends": ["@ggascoigne/semantic-release-config/github"]
}

or

{
  "extends": ["@ggascoigne/semantic-release-config/github-npm"]
}

.github/workflows/release.yml:

(See above)

GitLab

Additionally publishes a GitLab release and publishes to the NPM Registry.

Note: Generate a publish access token from NPM and save as a secret titled NPM_TOKEN in your repository.

.gitlab-ci-yml

{
  "extends": ["@ggascoigne/semantic-release-config/gitlab.js"]
}

or

{
  "extends": ["@ggascoigne/semantic-release-config/gitlab-npm.js"]
}

.gitlab-ci-yml:

See the GitLab documentation for more information.

Extending

An example using the github-npm config with different branching strategies to support publishing on distribution channels, maintenance releases, and pre-releases.

.releaserc.json

{
  "extends": ["@ggascoigne/semantic-release-config/github-npm"],
  "branches": [
    "+([0-9])?(.{+([0-9]),x}).x",
    "master",
    "next",
    "next-major",
    { "name": "beta", "prerelease": true },
    { "name": "alpha", "prerelease": true }
  ]
}

Under The Hood

index.js

  • @semantic-release/commit-analyzer
  • @semantic-release/release-notes-generator
  • @semantic-release/changelog
  • @semantic-release/git

github.js

  • @semantic-release/commit-analyzer
  • @semantic-release/release-notes-generator
  • @semantic-release/changelog
  • @semantic-release/github
  • @semantic-release/git

github-npm.js

  • @semantic-release/commit-analyzer
  • @semantic-release/release-notes-generator
  • @semantic-release/changelog
  • @semantic-release/npm
  • @semantic-release/github
  • @semantic-release/git

gitlab.js

  • @semantic-release/commit-analyzer
  • @semantic-release/release-notes-generator
  • @semantic-release/changelog
  • @semantic-release/gitlab
  • @semantic-release/git

gitlab-npm.js

  • @semantic-release/commit-analyzer
  • @semantic-release/release-notes-generator
  • @semantic-release/changelog
  • @semantic-release/npm
  • @semantic-release/gitlab
  • @semantic-release/git

License

MIT