New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

package-deployer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-deployer

A useful tool to deploy an NPM version via CLI

  • 1.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

NPM Deploy bot 👉 Automate your deployment process!

: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 argumentExplanation
--npm-access-tokenThe NPM access token. Required for NPM package deployments.
--npm-registryThe NPM registry. Default: registry.npmjs.org
--npm-scopeThe NPM scope. The scope of the NPM package. Default: ''
--github-access-tokenThe GitHub access token. Required for GitHub release deployments.
--github-ownerThe GitHub owner. Required for GitHub release deployments.
--github-repoThe GitHub repo. Required for GitHub release deployments.
--pretty-printPrinting data in a more "readable" format
--debugIf to print debug logs
--dry-runIf 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
ParametersExplanation
package_managersA list of package deployments. i.e. '[github, npm]'. Available options are github, npm.
pkg_nameThe name of the package.
npm_access_tokenThe NPM access token. Required for NPM package deployments.
npm_registryThe NPM registry. Default: registry.npmjs.org
npm_scopeThe NPM scope. The scope of the NPM package. Default: ''
github_access_tokenThe GitHub access token. Required for GitHub release deployments.
github_ownerThe GitHub owner. Required for GitHub release deployments.
github_repoThe GitHub repo. Required for GitHub release deployments.
pretty_printPrinting data in a more "readable" format
debugIf to print debug logs
dry_runIf to release packages in a dry run

FAQs

Package last updated on 10 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc