Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发布及引用一个npm的流程 / 打tag的流程 #129

Open
lovelmh13 opened this issue Jul 26, 2021 · 0 comments
Open

发布及引用一个npm的流程 / 打tag的流程 #129

lovelmh13 opened this issue Jul 26, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

  1. 先 commit 文件
    2.新建一个tag,这个tag就会打到刚才的 commit 上。两种方式tag
    1. git tag v1.0.0
    2. git tag -a v1.0.0 -m "这是一段说明tag的文字"
  2. push 代码
    4.git push origin --tags 提交tag
  3. 完成

在项目中引用刚才上传的的npm包:

不同于直接install,而是要指定地址:

npm install git+ssh://git@git.xxxx.com:npm/vue-router-push-hack.git#v1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant