fix npmrc and update readme instructions
This commit is contained in:
parent
5231e805bc
commit
6b71828653
3
.npmrc
3
.npmrc
@ -1,4 +1 @@
|
||||
@frontend:kitui=https://penahub.gitlab.yandexcloud.net/api/v4/packages/npm/
|
||||
'//penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken'="${GITLAB_AUTH_TOKEN}"
|
||||
'//penahub.gitlab.yandexcloud.net/api/v4/projects/21/packages/npm/:_authToken'="${GITLAB_AUTH_TOKEN}"
|
||||
|
||||
|
17
README.md
17
README.md
@ -1,12 +1,19 @@
|
||||
|
||||
## Перед использованием и публикацией
|
||||
```bash
|
||||
# заменить TOKEN на актуальный токен
|
||||
npm config set //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=TOKEN
|
||||
npm config set //penahub.gitlab.yandexcloud.net/api/v4/projects/21/packages/npm/:_authToken=TOKEN
|
||||
```
|
||||
## Публикация
|
||||
```bash
|
||||
# заменить token на актуальный токен
|
||||
GITLAB_AUTH_TOKEN=token yarn publish
|
||||
yarn publish
|
||||
```
|
||||
## Использование
|
||||
Добавить в корень проекта файл .yarnrc с содержимым
|
||||
```
|
||||
"@frontend:registry" "https://penahub.gitlab.yandexcloud.net/api/v4/packages/npm/"
|
||||
```
|
||||
Установка
|
||||
```bash
|
||||
# заменить token на актуальный токен
|
||||
npm config set //penahub.gitlab.yandexcloud.net/api/v4/packages/npm/:_authToken=token
|
||||
yarn add @frontend/kitui
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@frontend/kitui",
|
||||
"version": "1.0.25",
|
||||
"version": "1.0.26",
|
||||
"description": "test",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user