@extrahorizon/exh-cli 1.5.1-dev-27-7bdff2e → 1.5.1-feat-26-72616ac
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -3
- package/README.md +12 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# Extra Horizon CLI changelog
|
|
2
2
|
|
|
3
|
-
### v1.5.1
|
|
4
|
-
* Now also publishing to the NPM registry, no longer needing to authenticate with GitHub Packages to install the CLI
|
|
5
|
-
|
|
6
3
|
### v1.5.0
|
|
7
4
|
* Updated the supported runtimes for task functions
|
|
8
5
|
* `exh data schemas verify` and `exh tasks create-repo` no longer require you to be authenticated
|
package/README.md
CHANGED
|
@@ -7,6 +7,18 @@ See [changelog](CHANGELOG.md) for the latest changes.
|
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
10
|
+
### Configuring .npmrc
|
|
11
|
+
Assuming you've created a project (using npm init or equivalent), you need to create a file called .npmrc at the root level of your project and add the following lines:
|
|
12
|
+
```
|
|
13
|
+
@extrahorizon:registry=https://npm.pkg.github.com
|
|
14
|
+
//npm.pkg.github.com/:_authToken=${AUTH_TOKEN}
|
|
15
|
+
```
|
|
16
|
+
Replace ${AUTH_TOKEN} with your personal access token. You can get a new one at https://github.com/settings/tokens/new. Make sure you enable the read:packages scope.
|
|
17
|
+
Explanation from GitHub on how to add your token can be found here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages
|
|
18
|
+
|
|
19
|
+
You can also add the .npmrc to your home directory. In which case it will apply to all your projects.
|
|
20
|
+
|
|
21
|
+
### Install
|
|
10
22
|
*Note: The exh-cli requires at least node version 14*
|
|
11
23
|
|
|
12
24
|
To install in your project:
|