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

package-deployer

v1.1.9

Published

A useful tool to deploy an NPM version via CLI

Downloads

36

Readme

:zap: Quick Start

Run npm install package-deployer

:clap: Basic usage

Run deploy-pkg <package name> to deploy an automatic version locally. Here are available flags:

| CLI argument | Explanation | |---------------------- |------------------------------------------------------------------ | | --npm-access-token | The NPM access token. Required for NPM package deployments. | | --npm-registry | The NPM registry. Default: registry.npmjs.org | | --npm-scope | The NPM scope. The scope of the NPM package. Default: '' | | --github-access-token | The GitHub access token. Required for GitHub release deployments. | | --github-owner | The GitHub owner. Required for GitHub release deployments. | | --github-repo | The GitHub repo. Required for GitHub release deployments. | | --pretty-print | Printing data in a more "readable" format | | --debug | If to print debug logs | | --dry-run | If to release packages in a dry run |

:fire: Integrate with GitHub actions

You can integrate with a GitHub action workflow using the 'package-deploy-bot' GitHub action:

deployment:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Setting up the environment
      run: npm install
    - name: Deploying version
      uses: ./
      with:
        pkg_name: package-deployer
        pkg_managers: '[github, npm]'
        npm_registry: registry.npmjs.org
        npm_access_token: ${{secrets.NPM_AUTH_TOKEN}}
        github_access_token: ${{secrets.G_AUTH_TOKEN}}
        dry_run: true
        debug: true

| Parameters | Explanation | |-------------------- |---------------------------------------------------------------------------------------- | | package_managers | A list of package deployments. i.e. '[github, npm]'. Available options are github, npm. | | pkg_name | The name of the package. | | npm_access_token | The NPM access token. Required for NPM package deployments. | | npm_registry | The NPM registry. Default: registry.npmjs.org | | npm_scope | The NPM scope. The scope of the NPM package. Default: '' | | github_access_token | The GitHub access token. Required for GitHub release deployments. | | github_owner | The GitHub owner. Required for GitHub release deployments. | | github_repo | The GitHub repo. Required for GitHub release deployments. | | pretty_print | Printing data in a more "readable" format | | debug | If to print debug logs | | dry_run | If to release packages in a dry run |