You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -86,33 +86,39 @@ This setup lets you to share your configuration file without exposing your crede
86
86
> [!IMPORTANT]
87
87
> npm supports only a single `registry` setting in your *.npmrc* file. To use multiple registries, you must use [upstream sources](npm/upstream-sources.md) or [scopes](npm/scopes.md).
88
88
89
-
## Publish packages
89
+
## Publish packages to your feed
90
90
91
-
Run the following command in your project directory to publish your npm packages:
91
+
To successfully run the publish command, you must first authenticate with your feed. If you haven’t done this yet, follow the steps in the [Connect to a feed](connect-to-a-feed) section then continue with the instructions below.
92
92
93
-
```Command
94
-
npm publish
95
-
```
93
+
1. In your project directory, run the following command to publish the npm package defined in your *package.json*:
94
+
95
+
```
96
+
npm publish
97
+
```
96
98
97
99
> [!IMPORTANT]
98
-
> Using the `publishConfig` property to override the registry config param at publish-time is not supported.
100
+
> Using the `publishConfig` property to override the registry configuration at publish time is not supported.
101
+
102
+
## Restore packages from your feed
103
+
104
+
To successfully run the restore command, you must first authenticate with your feed. If you haven’t done this yet, follow the steps in the [Connect to a feed](connect-to-a-feed) section then continue with the instructions below.
105
+
106
+
1. In your project directory, run the following command to restore all npm packages:
99
107
100
-
## Restore packages
108
+
```
109
+
npm install
110
+
```
101
111
102
-
Run the following command in your project directory to restore your npm packages:
112
+
1. To restore a specific npm package, run the following command from your project directory:
103
113
104
-
```Command
105
-
npm install
106
-
```
114
+
```
115
+
npm install --save <PACKAGE_NAME>
116
+
```
107
117
108
-
To restore a specific npm package, run the following command from your project directory:
118
+
## Related content
109
119
110
-
```Command
111
-
npm install --save <PACKAGE_NAME>
112
-
```
120
+
- [Publish npm packages with Azure Pipelines (YAML/Classic)](../pipelines/artifacts/npm.md)
113
121
114
-
## Related articles
122
+
- [Use packages from npmjs.com](npm/upstream-sources.md)
0 commit comments