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

ci: add npm publish cli #50

Merged
merged 3 commits into from
Oct 20, 2022
Merged

ci: add npm publish cli #50

merged 3 commits into from
Oct 20, 2022

Conversation

byteHulk
Copy link
Contributor

发布 npm

releases 版本发布

// 1-1 进行了一些开发...
// 1-2 提交变更集
pnpm changeset
// 1-3 提升版本
pnpm version-packages
// 1-4 发包
pnpm release

Prereleases 版本发布

// 2-1 进入 Prereleases 模式
pnpm changeset pre enter [beta | alpha | rc]
// 2-2 进行一些 1 步骤的操作
//...
//2-3 退出模式
pnpm changeset pre exit

也可以在发包的时候不加上 --tag 参数

pnpm changeset publish --tag  [beta | alpha | rc]

@byteHulk
Copy link
Contributor Author

#44

@liruifengv liruifengv requested a review from CGQAQ October 19, 2022 09:03
@i5ting
Copy link
Owner

i5ting commented Oct 19, 2022

@byteHulk 看着没啥问题,冲突文件解决一下吧

@byteHulk
Copy link
Contributor Author

@byteHulk 看着没啥问题,冲突文件解决一下吧

👌

@i5ting
Copy link
Owner

i5ting commented Oct 20, 2022

@byteHulk

Run pnpm i
 ERROR  Unexpected string in JSON at position [6](https://github.com/i5ting/ts-junit/actions/runs/3282554378/jobs/5413240730#step:4:7)0[7](https://github.com/i5ting/ts-junit/actions/runs/3282554378/jobs/5413240730#step:4:8) while parsing '{  "name": "ts-junit",  "private": tru' in /home/runner/work/ts-junit/ts-junit/package.json 

  16 |     "release": "pnpm build && pnpm release:only",
  17 |     "release:only": "changeset publish --registry=https://registry.npmjs.com/"
> 1[8](https://github.com/i5ting/ts-junit/actions/runs/3282554378/jobs/5413240730#step:4:9) |     "format": "pnpm _phase:fmt --write",
     |     ^
  1[9](https://github.com/i5ting/ts-junit/actions/runs/3282554378/jobs/5413240730#step:4:10) |     "lint": "pnpm _phase:lint --fix",
  20 |     "check": "pnpm _phase:fmt --check && pnpm _phase:lint && pnpm _phase:cspell",
  21 |     "ci": "pnpm _phase:fmt --no-color --check && pnpm _phase:lint --no-color && pnpm _phase:cspell --no-color",

For help, run: pnpm help install
Error: Process completed with exit code 1.

@i5ting i5ting merged commit 75b4cd8 into i5ting:main Oct 20, 2022
justjavac pushed a commit that referenced this pull request Oct 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants