11cb0ef41Sopenharmony_ci<!DOCTYPE html><html><head>
21cb0ef41Sopenharmony_ci<meta charset="utf-8">
31cb0ef41Sopenharmony_ci<title>npm-publish</title>
41cb0ef41Sopenharmony_ci<style>
51cb0ef41Sopenharmony_cibody {
61cb0ef41Sopenharmony_ci    background-color: #ffffff;
71cb0ef41Sopenharmony_ci    color: #24292e;
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci    margin: 0;
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci    line-height: 1.5;
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ci    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
141cb0ef41Sopenharmony_ci}
151cb0ef41Sopenharmony_ci#rainbar {
161cb0ef41Sopenharmony_ci    height: 10px;
171cb0ef41Sopenharmony_ci    background-image: linear-gradient(139deg, #fb8817, #ff4b01, #c12127, #e02aff);
181cb0ef41Sopenharmony_ci}
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_cia {
211cb0ef41Sopenharmony_ci    text-decoration: none;
221cb0ef41Sopenharmony_ci    color: #0366d6;
231cb0ef41Sopenharmony_ci}
241cb0ef41Sopenharmony_cia:hover {
251cb0ef41Sopenharmony_ci    text-decoration: underline;
261cb0ef41Sopenharmony_ci}
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_cipre {
291cb0ef41Sopenharmony_ci    margin: 1em 0px;
301cb0ef41Sopenharmony_ci    padding: 1em;
311cb0ef41Sopenharmony_ci    border: solid 1px #e1e4e8;
321cb0ef41Sopenharmony_ci    border-radius: 6px;
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_ci    display: block;
351cb0ef41Sopenharmony_ci    overflow: auto;
361cb0ef41Sopenharmony_ci
371cb0ef41Sopenharmony_ci    white-space: pre;
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_ci    background-color: #f6f8fa;
401cb0ef41Sopenharmony_ci    color: #393a34;
411cb0ef41Sopenharmony_ci}
421cb0ef41Sopenharmony_cicode {
431cb0ef41Sopenharmony_ci    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
441cb0ef41Sopenharmony_ci    font-size: 85%;
451cb0ef41Sopenharmony_ci    padding: 0.2em 0.4em;
461cb0ef41Sopenharmony_ci    background-color: #f6f8fa;
471cb0ef41Sopenharmony_ci    color: #393a34;
481cb0ef41Sopenharmony_ci}
491cb0ef41Sopenharmony_cipre > code {
501cb0ef41Sopenharmony_ci    padding: 0;
511cb0ef41Sopenharmony_ci    background-color: inherit;
521cb0ef41Sopenharmony_ci    color: inherit;
531cb0ef41Sopenharmony_ci}
541cb0ef41Sopenharmony_cih1, h2, h3 {
551cb0ef41Sopenharmony_ci    font-weight: 600;
561cb0ef41Sopenharmony_ci}
571cb0ef41Sopenharmony_ci
581cb0ef41Sopenharmony_ci#logobar {
591cb0ef41Sopenharmony_ci    background-color: #333333;
601cb0ef41Sopenharmony_ci    margin: 0 auto;
611cb0ef41Sopenharmony_ci    padding: 1em 4em;
621cb0ef41Sopenharmony_ci}
631cb0ef41Sopenharmony_ci#logobar .logo {
641cb0ef41Sopenharmony_ci    float: left;
651cb0ef41Sopenharmony_ci}
661cb0ef41Sopenharmony_ci#logobar .title {
671cb0ef41Sopenharmony_ci    font-weight: 600;
681cb0ef41Sopenharmony_ci    color: #dddddd;
691cb0ef41Sopenharmony_ci    float: left;
701cb0ef41Sopenharmony_ci    margin: 5px 0 0 1em;
711cb0ef41Sopenharmony_ci}
721cb0ef41Sopenharmony_ci#logobar:after {
731cb0ef41Sopenharmony_ci    content: "";
741cb0ef41Sopenharmony_ci    display: block;
751cb0ef41Sopenharmony_ci    clear: both;
761cb0ef41Sopenharmony_ci}
771cb0ef41Sopenharmony_ci
781cb0ef41Sopenharmony_ci#content {
791cb0ef41Sopenharmony_ci    margin: 0 auto;
801cb0ef41Sopenharmony_ci    padding: 0 4em;
811cb0ef41Sopenharmony_ci}
821cb0ef41Sopenharmony_ci
831cb0ef41Sopenharmony_ci#table_of_contents > h2 {
841cb0ef41Sopenharmony_ci    font-size: 1.17em;
851cb0ef41Sopenharmony_ci}
861cb0ef41Sopenharmony_ci#table_of_contents ul:first-child {
871cb0ef41Sopenharmony_ci    border: solid 1px #e1e4e8;
881cb0ef41Sopenharmony_ci    border-radius: 6px;
891cb0ef41Sopenharmony_ci    padding: 1em;
901cb0ef41Sopenharmony_ci    background-color: #f6f8fa;
911cb0ef41Sopenharmony_ci    color: #393a34;
921cb0ef41Sopenharmony_ci}
931cb0ef41Sopenharmony_ci#table_of_contents ul {
941cb0ef41Sopenharmony_ci    list-style-type: none;
951cb0ef41Sopenharmony_ci    padding-left: 1.5em;
961cb0ef41Sopenharmony_ci}
971cb0ef41Sopenharmony_ci#table_of_contents li {
981cb0ef41Sopenharmony_ci    font-size: 0.9em;
991cb0ef41Sopenharmony_ci}
1001cb0ef41Sopenharmony_ci#table_of_contents li a {
1011cb0ef41Sopenharmony_ci    color: #000000;
1021cb0ef41Sopenharmony_ci}
1031cb0ef41Sopenharmony_ci
1041cb0ef41Sopenharmony_ciheader.title {
1051cb0ef41Sopenharmony_ci    border-bottom: solid 1px #e1e4e8;
1061cb0ef41Sopenharmony_ci}
1071cb0ef41Sopenharmony_ciheader.title > h1 {
1081cb0ef41Sopenharmony_ci    margin-bottom: 0.25em;
1091cb0ef41Sopenharmony_ci}
1101cb0ef41Sopenharmony_ciheader.title > .description {
1111cb0ef41Sopenharmony_ci    display: block;
1121cb0ef41Sopenharmony_ci    margin-bottom: 0.5em;
1131cb0ef41Sopenharmony_ci    line-height: 1;
1141cb0ef41Sopenharmony_ci}
1151cb0ef41Sopenharmony_ci
1161cb0ef41Sopenharmony_cifooter#edit {
1171cb0ef41Sopenharmony_ci    border-top: solid 1px #e1e4e8;
1181cb0ef41Sopenharmony_ci    margin: 3em 0 4em 0;
1191cb0ef41Sopenharmony_ci    padding-top: 2em;
1201cb0ef41Sopenharmony_ci}
1211cb0ef41Sopenharmony_ci</style>
1221cb0ef41Sopenharmony_ci</head>
1231cb0ef41Sopenharmony_ci<body>
1241cb0ef41Sopenharmony_ci<div id="banner">
1251cb0ef41Sopenharmony_ci<div id="rainbar"></div>
1261cb0ef41Sopenharmony_ci<div id="logobar">
1271cb0ef41Sopenharmony_ci<svg class="logo" role="img" height="32" width="32" viewBox="0 0 700 700">
1281cb0ef41Sopenharmony_ci<polygon fill="#cb0000" points="0,700 700,700 700,0 0,0"></polygon>
1291cb0ef41Sopenharmony_ci<polygon fill="#ffffff" points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150"></polygon>
1301cb0ef41Sopenharmony_ci</svg>
1311cb0ef41Sopenharmony_ci<div class="title">
1321cb0ef41Sopenharmony_cinpm command-line interface
1331cb0ef41Sopenharmony_ci</div>
1341cb0ef41Sopenharmony_ci</div>
1351cb0ef41Sopenharmony_ci</div>
1361cb0ef41Sopenharmony_ci
1371cb0ef41Sopenharmony_ci<section id="content">
1381cb0ef41Sopenharmony_ci<header class="title">
1391cb0ef41Sopenharmony_ci<h1 id="npm-publish">npm-publish</h1>
1401cb0ef41Sopenharmony_ci<span class="description">Publish a package</span>
1411cb0ef41Sopenharmony_ci</header>
1421cb0ef41Sopenharmony_ci
1431cb0ef41Sopenharmony_ci<section id="table_of_contents">
1441cb0ef41Sopenharmony_ci<h2 id="table-of-contents">Table of contents</h2>
1451cb0ef41Sopenharmony_ci<div id="_table_of_contents"><ul><li><a href="#synopsis">Synopsis</a></li><li><a href="#description">Description</a></li><li><a href="#files-included-in-package">Files included in package</a></li><li><a href="#configuration">Configuration</a></li><ul><li><a href="#tag"><code>tag</code></a></li><li><a href="#access"><code>access</code></a></li><li><a href="#dry-run"><code>dry-run</code></a></li><li><a href="#otp"><code>otp</code></a></li><li><a href="#workspace"><code>workspace</code></a></li><li><a href="#workspaces"><code>workspaces</code></a></li><li><a href="#include-workspace-root"><code>include-workspace-root</code></a></li><li><a href="#provenance"><code>provenance</code></a></li><li><a href="#provenance-file"><code>provenance-file</code></a></li></ul><li><a href="#see-also">See Also</a></li></ul></div>
1461cb0ef41Sopenharmony_ci</section>
1471cb0ef41Sopenharmony_ci
1481cb0ef41Sopenharmony_ci<div id="_content"><h3 id="synopsis">Synopsis</h3>
1491cb0ef41Sopenharmony_ci<pre><code class="language-bash">npm publish &lt;package-spec&gt;
1501cb0ef41Sopenharmony_ci</code></pre>
1511cb0ef41Sopenharmony_ci<h3 id="description">Description</h3>
1521cb0ef41Sopenharmony_ci<p>Publishes a package to the registry so that it can be installed by name.</p>
1531cb0ef41Sopenharmony_ci<p>By default npm will publish to the public registry. This can be
1541cb0ef41Sopenharmony_cioverridden by specifying a different default registry or using a
1551cb0ef41Sopenharmony_ci<a href="../using-npm/scope.html"><code>scope</code></a> in the name, combined with a
1561cb0ef41Sopenharmony_ciscope-configured registry (see
1571cb0ef41Sopenharmony_ci<a href="../configuring-npm/package-json.html"><code>package.json</code></a>).</p>
1581cb0ef41Sopenharmony_ci<p>A <code>package</code> is interpreted the same way as other commands (like
1591cb0ef41Sopenharmony_ci<code>npm install</code>) and can be:</p>
1601cb0ef41Sopenharmony_ci<ul>
1611cb0ef41Sopenharmony_ci<li>a) a folder containing a program described by a
1621cb0ef41Sopenharmony_ci<a href="../configuring-npm/package-json.html"><code>package.json</code></a> file</li>
1631cb0ef41Sopenharmony_ci<li>b) a gzipped tarball containing (a)</li>
1641cb0ef41Sopenharmony_ci<li>c) a url that resolves to (b)</li>
1651cb0ef41Sopenharmony_ci<li>d) a <code>&lt;name&gt;@&lt;version&gt;</code> that is published on the registry (see
1661cb0ef41Sopenharmony_ci<a href="../using-npm/registry.html"><code>registry</code></a>) with (c)</li>
1671cb0ef41Sopenharmony_ci<li>e) a <code>&lt;name&gt;@&lt;tag&gt;</code> (see <a href="../commands/npm-dist-tag.html"><code>npm dist-tag</code></a>) that
1681cb0ef41Sopenharmony_cipoints to (d)</li>
1691cb0ef41Sopenharmony_ci<li>f) a <code>&lt;name&gt;</code> that has a "latest" tag satisfying (e)</li>
1701cb0ef41Sopenharmony_ci<li>g) a <code>&lt;git remote url&gt;</code> that resolves to (a)</li>
1711cb0ef41Sopenharmony_ci</ul>
1721cb0ef41Sopenharmony_ci<p>The publish will fail if the package name and version combination already
1731cb0ef41Sopenharmony_ciexists in the specified registry.</p>
1741cb0ef41Sopenharmony_ci<p>Once a package is published with a given name and version, that specific
1751cb0ef41Sopenharmony_ciname and version combination can never be used again, even if it is removed
1761cb0ef41Sopenharmony_ciwith <a href="../commands/npm-unpublish.html"><code>npm unpublish</code></a>.</p>
1771cb0ef41Sopenharmony_ci<p>As of <code>npm@5</code>, both a sha1sum and an integrity field with a sha512sum of the
1781cb0ef41Sopenharmony_citarball will be submitted to the registry during publication. Subsequent
1791cb0ef41Sopenharmony_ciinstalls will use the strongest supported algorithm to verify downloads.</p>
1801cb0ef41Sopenharmony_ci<p>Similar to <code>--dry-run</code> see <a href="../commands/npm-pack.html"><code>npm pack</code></a>, which figures
1811cb0ef41Sopenharmony_ciout the files to be included and packs them into a tarball to be uploaded
1821cb0ef41Sopenharmony_cito the registry.</p>
1831cb0ef41Sopenharmony_ci<h3 id="files-included-in-package">Files included in package</h3>
1841cb0ef41Sopenharmony_ci<p>To see what will be included in your package, run <code>npm pack --dry-run</code>.  All
1851cb0ef41Sopenharmony_cifiles are included by default, with the following exceptions:</p>
1861cb0ef41Sopenharmony_ci<ul>
1871cb0ef41Sopenharmony_ci<li>
1881cb0ef41Sopenharmony_ci<p>Certain files that are relevant to package installation and distribution
1891cb0ef41Sopenharmony_ciare always included.  For example, <code>package.json</code>, <code>README.md</code>,
1901cb0ef41Sopenharmony_ci<code>LICENSE</code>, and so on.</p>
1911cb0ef41Sopenharmony_ci</li>
1921cb0ef41Sopenharmony_ci<li>
1931cb0ef41Sopenharmony_ci<p>If there is a "files" list in
1941cb0ef41Sopenharmony_ci<a href="../configuring-npm/package-json.html"><code>package.json</code></a>, then only the files
1951cb0ef41Sopenharmony_cispecified will be included.  (If directories are specified, then they
1961cb0ef41Sopenharmony_ciwill be walked recursively and their contents included, subject to the
1971cb0ef41Sopenharmony_cisame ignore rules.)</p>
1981cb0ef41Sopenharmony_ci</li>
1991cb0ef41Sopenharmony_ci<li>
2001cb0ef41Sopenharmony_ci<p>If there is a <code>.gitignore</code> or <code>.npmignore</code> file, then ignored files in
2011cb0ef41Sopenharmony_cithat and all child directories will be excluded from the package.  If
2021cb0ef41Sopenharmony_ci<em>both</em> files exist, then the <code>.gitignore</code> is ignored, and only the
2031cb0ef41Sopenharmony_ci<code>.npmignore</code> is used.</p>
2041cb0ef41Sopenharmony_ci<p><code>.npmignore</code> files follow the <a href="https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository#_ignoring">same pattern
2051cb0ef41Sopenharmony_cirules</a>
2061cb0ef41Sopenharmony_cias <code>.gitignore</code> files</p>
2071cb0ef41Sopenharmony_ci</li>
2081cb0ef41Sopenharmony_ci<li>
2091cb0ef41Sopenharmony_ci<p>If the file matches certain patterns, then it will <em>never</em> be included,
2101cb0ef41Sopenharmony_ciunless explicitly added to the <code>"files"</code> list in <code>package.json</code>, or
2111cb0ef41Sopenharmony_ciun-ignored with a <code>!</code> rule in a <code>.npmignore</code> or <code>.gitignore</code> file.</p>
2121cb0ef41Sopenharmony_ci</li>
2131cb0ef41Sopenharmony_ci<li>
2141cb0ef41Sopenharmony_ci<p>Symbolic links are never included in npm packages.</p>
2151cb0ef41Sopenharmony_ci</li>
2161cb0ef41Sopenharmony_ci</ul>
2171cb0ef41Sopenharmony_ci<p>See <a href="../using-npm/developers.html"><code>developers</code></a> for full details on what's
2181cb0ef41Sopenharmony_ciincluded in the published package, as well as details on how the package is
2191cb0ef41Sopenharmony_cibuilt.</p>
2201cb0ef41Sopenharmony_ci<h3 id="configuration">Configuration</h3>
2211cb0ef41Sopenharmony_ci<h4 id="tag"><code>tag</code></h4>
2221cb0ef41Sopenharmony_ci<ul>
2231cb0ef41Sopenharmony_ci<li>Default: "latest"</li>
2241cb0ef41Sopenharmony_ci<li>Type: String</li>
2251cb0ef41Sopenharmony_ci</ul>
2261cb0ef41Sopenharmony_ci<p>If you ask npm to install a package and don't tell it a specific version,
2271cb0ef41Sopenharmony_cithen it will install the specified tag.</p>
2281cb0ef41Sopenharmony_ci<p>Also the tag that is added to the package@version specified by the <code>npm tag</code>
2291cb0ef41Sopenharmony_cicommand, if no explicit tag is given.</p>
2301cb0ef41Sopenharmony_ci<p>When used by the <code>npm diff</code> command, this is the tag used to fetch the
2311cb0ef41Sopenharmony_citarball that will be compared with the local files by default.</p>
2321cb0ef41Sopenharmony_ci<h4 id="access"><code>access</code></h4>
2331cb0ef41Sopenharmony_ci<ul>
2341cb0ef41Sopenharmony_ci<li>Default: 'public' for new packages, existing packages it will not change the
2351cb0ef41Sopenharmony_cicurrent level</li>
2361cb0ef41Sopenharmony_ci<li>Type: null, "restricted", or "public"</li>
2371cb0ef41Sopenharmony_ci</ul>
2381cb0ef41Sopenharmony_ci<p>If you do not want your scoped package to be publicly viewable (and
2391cb0ef41Sopenharmony_ciinstallable) set <code>--access=restricted</code>.</p>
2401cb0ef41Sopenharmony_ci<p>Unscoped packages can not be set to <code>restricted</code>.</p>
2411cb0ef41Sopenharmony_ci<p>Note: This defaults to not changing the current access level for existing
2421cb0ef41Sopenharmony_cipackages. Specifying a value of <code>restricted</code> or <code>public</code> during publish will
2431cb0ef41Sopenharmony_cichange the access for an existing package the same way that <code>npm access set status</code> would.</p>
2441cb0ef41Sopenharmony_ci<h4 id="dry-run"><code>dry-run</code></h4>
2451cb0ef41Sopenharmony_ci<ul>
2461cb0ef41Sopenharmony_ci<li>Default: false</li>
2471cb0ef41Sopenharmony_ci<li>Type: Boolean</li>
2481cb0ef41Sopenharmony_ci</ul>
2491cb0ef41Sopenharmony_ci<p>Indicates that you don't want npm to make any changes and that it should
2501cb0ef41Sopenharmony_cionly report what it would have done. This can be passed into any of the
2511cb0ef41Sopenharmony_cicommands that modify your local installation, eg, <code>install</code>, <code>update</code>,
2521cb0ef41Sopenharmony_ci<code>dedupe</code>, <code>uninstall</code>, as well as <code>pack</code> and <code>publish</code>.</p>
2531cb0ef41Sopenharmony_ci<p>Note: This is NOT honored by other network related commands, eg <code>dist-tags</code>,
2541cb0ef41Sopenharmony_ci<code>owner</code>, etc.</p>
2551cb0ef41Sopenharmony_ci<h4 id="otp"><code>otp</code></h4>
2561cb0ef41Sopenharmony_ci<ul>
2571cb0ef41Sopenharmony_ci<li>Default: null</li>
2581cb0ef41Sopenharmony_ci<li>Type: null or String</li>
2591cb0ef41Sopenharmony_ci</ul>
2601cb0ef41Sopenharmony_ci<p>This is a one-time password from a two-factor authenticator. It's needed
2611cb0ef41Sopenharmony_ciwhen publishing or changing package permissions with <code>npm access</code>.</p>
2621cb0ef41Sopenharmony_ci<p>If not set, and a registry response fails with a challenge for a one-time
2631cb0ef41Sopenharmony_cipassword, npm will prompt on the command line for one.</p>
2641cb0ef41Sopenharmony_ci<h4 id="workspace"><code>workspace</code></h4>
2651cb0ef41Sopenharmony_ci<ul>
2661cb0ef41Sopenharmony_ci<li>Default:</li>
2671cb0ef41Sopenharmony_ci<li>Type: String (can be set multiple times)</li>
2681cb0ef41Sopenharmony_ci</ul>
2691cb0ef41Sopenharmony_ci<p>Enable running a command in the context of the configured workspaces of the
2701cb0ef41Sopenharmony_cicurrent project while filtering by running only the workspaces defined by
2711cb0ef41Sopenharmony_cithis configuration option.</p>
2721cb0ef41Sopenharmony_ci<p>Valid values for the <code>workspace</code> config are either:</p>
2731cb0ef41Sopenharmony_ci<ul>
2741cb0ef41Sopenharmony_ci<li>Workspace names</li>
2751cb0ef41Sopenharmony_ci<li>Path to a workspace directory</li>
2761cb0ef41Sopenharmony_ci<li>Path to a parent workspace directory (will result in selecting all
2771cb0ef41Sopenharmony_ciworkspaces within that folder)</li>
2781cb0ef41Sopenharmony_ci</ul>
2791cb0ef41Sopenharmony_ci<p>When set for the <code>npm init</code> command, this may be set to the folder of a
2801cb0ef41Sopenharmony_ciworkspace which does not yet exist, to create the folder and set it up as a
2811cb0ef41Sopenharmony_cibrand new workspace within the project.</p>
2821cb0ef41Sopenharmony_ci<p>This value is not exported to the environment for child processes.</p>
2831cb0ef41Sopenharmony_ci<h4 id="workspaces"><code>workspaces</code></h4>
2841cb0ef41Sopenharmony_ci<ul>
2851cb0ef41Sopenharmony_ci<li>Default: null</li>
2861cb0ef41Sopenharmony_ci<li>Type: null or Boolean</li>
2871cb0ef41Sopenharmony_ci</ul>
2881cb0ef41Sopenharmony_ci<p>Set to true to run the command in the context of <strong>all</strong> configured
2891cb0ef41Sopenharmony_ciworkspaces.</p>
2901cb0ef41Sopenharmony_ci<p>Explicitly setting this to false will cause commands like <code>install</code> to
2911cb0ef41Sopenharmony_ciignore workspaces altogether. When not set explicitly:</p>
2921cb0ef41Sopenharmony_ci<ul>
2931cb0ef41Sopenharmony_ci<li>Commands that operate on the <code>node_modules</code> tree (install, update, etc.)
2941cb0ef41Sopenharmony_ciwill link workspaces into the <code>node_modules</code> folder. - Commands that do
2951cb0ef41Sopenharmony_ciother things (test, exec, publish, etc.) will operate on the root project,
2961cb0ef41Sopenharmony_ci<em>unless</em> one or more workspaces are specified in the <code>workspace</code> config.</li>
2971cb0ef41Sopenharmony_ci</ul>
2981cb0ef41Sopenharmony_ci<p>This value is not exported to the environment for child processes.</p>
2991cb0ef41Sopenharmony_ci<h4 id="include-workspace-root"><code>include-workspace-root</code></h4>
3001cb0ef41Sopenharmony_ci<ul>
3011cb0ef41Sopenharmony_ci<li>Default: false</li>
3021cb0ef41Sopenharmony_ci<li>Type: Boolean</li>
3031cb0ef41Sopenharmony_ci</ul>
3041cb0ef41Sopenharmony_ci<p>Include the workspace root when workspaces are enabled for a command.</p>
3051cb0ef41Sopenharmony_ci<p>When false, specifying individual workspaces via the <code>workspace</code> config, or
3061cb0ef41Sopenharmony_ciall workspaces via the <code>workspaces</code> flag, will cause npm to operate only on
3071cb0ef41Sopenharmony_cithe specified workspaces, and not on the root project.</p>
3081cb0ef41Sopenharmony_ci<p>This value is not exported to the environment for child processes.</p>
3091cb0ef41Sopenharmony_ci<h4 id="provenance"><code>provenance</code></h4>
3101cb0ef41Sopenharmony_ci<ul>
3111cb0ef41Sopenharmony_ci<li>Default: false</li>
3121cb0ef41Sopenharmony_ci<li>Type: Boolean</li>
3131cb0ef41Sopenharmony_ci</ul>
3141cb0ef41Sopenharmony_ci<p>When publishing from a supported cloud CI/CD system, the package will be
3151cb0ef41Sopenharmony_cipublicly linked to where it was built and published from.</p>
3161cb0ef41Sopenharmony_ci<p>This config can not be used with: <code>provenance-file</code></p>
3171cb0ef41Sopenharmony_ci<h4 id="provenance-file"><code>provenance-file</code></h4>
3181cb0ef41Sopenharmony_ci<ul>
3191cb0ef41Sopenharmony_ci<li>Default: null</li>
3201cb0ef41Sopenharmony_ci<li>Type: Path</li>
3211cb0ef41Sopenharmony_ci</ul>
3221cb0ef41Sopenharmony_ci<p>When publishing, the provenance bundle at the given path will be used.</p>
3231cb0ef41Sopenharmony_ci<p>This config can not be used with: <code>provenance</code></p>
3241cb0ef41Sopenharmony_ci<h3 id="see-also">See Also</h3>
3251cb0ef41Sopenharmony_ci<ul>
3261cb0ef41Sopenharmony_ci<li><a href="../using-npm/package-spec.html">package spec</a></li>
3271cb0ef41Sopenharmony_ci<li><a href="http://npm.im/npm-packlist">npm-packlist package</a></li>
3281cb0ef41Sopenharmony_ci<li><a href="../using-npm/registry.html">npm registry</a></li>
3291cb0ef41Sopenharmony_ci<li><a href="../using-npm/scope.html">npm scope</a></li>
3301cb0ef41Sopenharmony_ci<li><a href="../commands/npm-adduser.html">npm adduser</a></li>
3311cb0ef41Sopenharmony_ci<li><a href="../commands/npm-owner.html">npm owner</a></li>
3321cb0ef41Sopenharmony_ci<li><a href="../commands/npm-deprecate.html">npm deprecate</a></li>
3331cb0ef41Sopenharmony_ci<li><a href="../commands/npm-dist-tag.html">npm dist-tag</a></li>
3341cb0ef41Sopenharmony_ci<li><a href="../commands/npm-pack.html">npm pack</a></li>
3351cb0ef41Sopenharmony_ci<li><a href="../commands/npm-profile.html">npm profile</a></li>
3361cb0ef41Sopenharmony_ci</ul></div>
3371cb0ef41Sopenharmony_ci
3381cb0ef41Sopenharmony_ci<footer id="edit">
3391cb0ef41Sopenharmony_ci<a href="https://github.com/npm/cli/edit/latest/docs/content/commands/npm-publish.md">
3401cb0ef41Sopenharmony_ci<svg role="img" viewBox="0 0 16 16" width="16" height="16" fill="currentcolor" style="vertical-align: text-bottom; margin-right: 0.3em;">
3411cb0ef41Sopenharmony_ci<path fill-rule="evenodd" d="M11.013 1.427a1.75 1.75 0 012.474 0l1.086 1.086a1.75 1.75 0 010 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 01-.927-.928l.929-3.25a1.75 1.75 0 01.445-.758l8.61-8.61zm1.414 1.06a.25.25 0 00-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 000-.354l-1.086-1.086zM11.189 6.25L9.75 4.81l-6.286 6.287a.25.25 0 00-.064.108l-.558 1.953 1.953-.558a.249.249 0 00.108-.064l6.286-6.286z"></path>
3421cb0ef41Sopenharmony_ci</svg>
3431cb0ef41Sopenharmony_ciEdit this page on GitHub
3441cb0ef41Sopenharmony_ci</a>
3451cb0ef41Sopenharmony_ci</footer>
3461cb0ef41Sopenharmony_ci</section>
3471cb0ef41Sopenharmony_ci
3481cb0ef41Sopenharmony_ci
3491cb0ef41Sopenharmony_ci
3501cb0ef41Sopenharmony_ci</body></html>