mirror of
https://git.um-react.app/um/lib_um_crypto_rust.git
synced 2026-03-08 04:29:54 +00:00
fix: use new repo
This commit is contained in:
@@ -1,2 +1 @@
|
||||
@um:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
@unlock-music:registry=https://git.um-react.app/api/packages/um/npm/
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
在项目根目录下,建立或更改 `.npmrc` 文件,确保下述行存在:
|
||||
|
||||
```
|
||||
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/
|
||||
@unlock-music:registry=https://git.um-react.app/api/packages/um/npm/
|
||||
```
|
||||
|
||||
使用你喜欢的包管理器安装,例如 `npm` 或 `pnpm`:
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
- 编辑 `~/.npmrc`,加入下述两行并替换 `token` 为新申请的令牌:
|
||||
|
||||
```text
|
||||
//git.unlock-music.dev/api/packages/um/npm/:_authToken=xxxxx123456789xxxxx
|
||||
//git.unlock-music.dev/api/packages/npm/:_authToken=xxxxx123456789xxxxx
|
||||
//git.um-react.app/api/packages/um/npm/:_authToken=xxxxx123456789xxxxx
|
||||
//git.um-react.app/api/packages/npm/:_authToken=xxxxx123456789xxxxx
|
||||
```
|
||||
|
||||
- 使用 `publish` 指令发包:
|
||||
|
||||
@@ -6,5 +6,5 @@ if [[ ! "$GITHUB_REF" =~ ^refs/tags/ ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo '//git.unlock-music.dev/api/packages/um/npm/:_authToken=${NPM_TOKEN}' > $HOME/.npmrc
|
||||
pnpm config set -- '//git.um-react.app/api/packages/um/npm/:_authToken' "${NPM_TOKEN}"
|
||||
pnpm publish --access=public --no-git-checks
|
||||
|
||||
Reference in New Issue
Block a user