代码拉取完成,页面将自动刷新
This Action for npm enables arbitrary actions with the npm
command-line client, including testing packages and publishing to a registry.
An example workflow to build, test, and publish an npm package to the default public registry follows:
workflow "Build, Test, and Publish" {
on = "push"
resolves = ["Publish"]
}
action "Build" {
uses = "actions/npm@master"
args = "install"
}
action "Test" {
needs = "Build"
uses = "actions/npm@master"
args = "test"
}
action "Publish" {
needs = "Test"
uses = "actions/npm@master"
args = "publish --access public"
secrets = ["NPM_AUTH_TOKEN"]
}
NPM_AUTH_TOKEN
- Optional. The token to use for authentication with the npm registry. Required for npm publish
(more info)NPM_REGISTRY_URL
- Optional. To specify a registry to authenticate with. Defaults to registry.npmjs.org
NPM_CONFIG_USERCONFIG
- Optional. To specify a non-default per-user configuration file. Defaults to $HOME/.npmrc
(more info)To authenticate with, and publish to, a registry other than registry.npmjs.org
:
action "Publish" {
uses = "actions/npm@master"
args = "publish --access public"
env = {
NPM_REGISTRY_URL = "someOtherRegistry.someDomain.net"
}
secrets = ["NPM_TOKEN"]
}
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。