Skip to content

mikeal/npx

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

GitHub Action for npx

This Action for npx enables arbitrary actions with the npx command-line client, which will pull down, install and run arbitrary command line interfaces from npm.

Usage

An example workflow to build, test, and publish an npm package to the default public registry follows:

workflow "Build" {
  on = "push"
  resolves = ["Publish"]
}

action "Build w/ Webpack" {
  uses = "mikeal/npx@master"
  args = "webpack"
}

Secrets

  • NPM_AUTH_TOKEN - Optional. The token to use for authentication with the npm registry. Required for npm publish (more info)

Environment variables

  • NPM_REGISTRY_URL - Optional. To specify a registry to authenticate with. Defaults to registry.npmjs.org
  • NPM_STRICT_SSL - Optional. Specify false if your registry is insecure and uses the http protocol. Defaults to true
  • NPM_CONFIG_USERCONFIG - Optional. To specify a non-default per-user configuration file. Defaults to $HOME/.npmrc (more info)

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.

About

GitHub Action for interacting with npx

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 57.0%
  • Dockerfile 21.4%
  • HCL 21.0%
  • Ruby 0.6%