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

@carbonaut/release-docs

v4.0.0

Published

![deployment](https://github.com/carbonaut/release-docs/workflows/deployment/badge.svg?branch=master) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/seman

Downloads

68

Readme

deployment semantic-release

@carbounaut/release-docs

semantic-release shareable configuration to publish Angular and Ionic GitHub projects and to deploy the changelog file as a JSON or HTML format to an external GitHub project.

Plugins

This shareable configuration uses the following plugins:

Summary

This shareable configuration performs the following actions:

  1. Analyze commits (@semantic-release/commit-analyzer)
  2. Generate changelog content (@semantic-release/release-notes-generator)
  3. Create or update a changelog file generated by step 2 (@semantic-release/changelog)
  4. Update the package version to the next release version (release-docs-adjust-version)
  5. Commit release assets to the project's git repository with the commit message chore(release): ${nextRelease.version} [skip ci] ${nextRelease.notes}. The following files are committed:
    • package-lock.json
    • package.json
    • CHANGELOG.md
    • config.xml
  6. Publish a GitHub release and comment on released Pull Requests/Issues (@semantic-release/github)
  7. Upload the new generated CHANGELOG to a S3 bucket (release-docs-changelog-upload-s3)
  8. Send a release notification on Slack from a slack bot (semantic-release-slack-bot)

Install

$ npm install --save-dev semantic-release@17 @carbonaut/release-docs

Usage

Project Setup

When installing this package for the first time, the following shareable configuration (.releaserc.json) is automatically added to your project root folder:

{
  "extends": "@carbonaut/release-docs"
}

Add the following semantic-release command into the scripts section on your package.json:

...
"scripts": {
    "semantic-release": "semantic-release"
  }
...

Environment Variables Configuration

Ensure that your CI configuration has the following environment variables set:

  • GH_TOKEN: A GitHub personal access token;

  • RELEASE_DOCS_PROJECT_ID: Unique project identifier. It will be used as the changelog file title on the S3 bucket;

  • RELEASE_DOCS_AWS_ACCESS_KEY_ID: AWS access key from the S3 bucket where the changelog file will be hosted;

  • RELEASE_DOCS_AWS_SECRET_ACCESS_KEY_ID: AWS secret access key from the S3 bucket where the changelog file will be hosted;

  • SLACK_WEBHOOK: Slack webhook created when adding app to workspace.

Releasing Locally

$ RELEASE_DOCS_PROJECT_ID=<project ID> RELEASE_DOCS_AWS_ACCESS_KEY_ID=<AWS access key> RELEASE_DOCS_AWS_SECRET_ACCESS_KEY_ID=<AWS secret access key> RELEASE_DOCS_AWS_BUCKET=<AWS bucket> GH_TOKEN=<GitHub token> npm run semantic-release --dry-run=false --no-ci

Running in CI

First, setup all the required environment variables on your CI environment. Then just call the following script in your CI configuration file to trigger the release process:

$ npm run semantic-release

Scripts

The following scripts are also available to be used separately.

release-docs-adjust-version

Update the package version to the next release version on the following files:

  • package.json: property version (this file is required)
  • config.xml: attribute version (this file is optional)
release-docs-adjust-version --version=<version>

release-docs-changelog-upload-s3

Upload the new generated CHANGELOG to a S3 bucket:

  1. Convert the CHANGELOG.md file to JSON format;
  2. Send the parsed changelog content to the S3 bucket RELEASE_DOCS_AWS_BUCKET. This file will be available at https://s3.eu-central-1.amazonaws.com/<RELEASE_DOCS_AWS_BUCKET>/<RELEASE_DOCS_PROJECT_ID>.json.
release-docs-changelog-upload-s3 --key=<ṕroject ID> --awsAccessKeyId=<AWS access key> --awsSecretAccessKey<AWS secret access key> --awsBucket=<AWS bucket>"

Overwritten Options

This following options are set by this shareable config:

| Option | Value | |---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------| | @semantic-release/exec: prepareCmd | release-docs-adjust-version --version=${nextRelease.version} | | @semantic-release/exec: successCmd | release-docs-changelog-upload-s3 --key=<ṕroject ID> --awsAccessKeyId=<AWS access key> --awsSecretAccessKey<AWS secret access key> --awsBucket=<AWS bucket>" | | @semantic-release/git: assets | ["package-lock.json", "package.json", "CHANGELOG.md", "config.xml"] | | @semantic-release/git: message | chore(release): ${nextRelease.version} [skip ci] ${nextRelease.notes} |

Other options use their default values. See each plugin documentation for available options.