-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
[BUG] generate failed when make a patch version update #59
[BUG] generate failed when make a patch version update #59
Comments
So the change log under the There are two ways to fix this issue: 1.1. change the changelog format to fit the There also some new ways to ignore this issue. 2.1. We can use a personal access token to publish this extension and give it up to make the release. I will achieve the 2.2 to fix the issue temporarily. @vivaxy I think more discussion needed here. 😀 |
Only use the link description(`Changelogs: https://...`) to fill into the release body. Detect the latest version from the `package.json`. The workflows trigger on the file changed of `CHANGELOG.md`. Ref: #59
@yi-Xu-0100 What you did with GitHub Actions is awesome! I'm not familiar with GitHub Actions. But still, I've some questions:
|
@vivaxy Thanks for your suggestion here, I use the script for some reason.
So the action workflows can trigger manually and run with the following steps:
For the possible error in action.
For the For the |
I find the official tutorials about GitHub action, maybe we can use the script according to it. But we also need the |
Hi, @yi-Xu-0100. Thank you for your detailed reply. I think, in conclusion, the For the |
Prettier changelog content to reader format. ref: #59
@vivaxy I try to figure out whether the format should be, and found this issue(conventional-changelog/standard-version#317). So I use the standard-version for create commit, and lint by the personal options. 😀 In conclusion, I changed the workflows, and it will run with the follow steps by trigger manually:
By the way, thanks for the suggestion about the name of the script |
The `release` workflow will run with the follow steps by trigger manually: 1. Set up job and checkout code for all history with tags. 2. Bump version of `package.json` and write change log with `standard-version`. 3. Pretty the format of `CHANGELOG.md`, push the commit, and add a tag. 4. Follow the [official tutorials](https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions-automated-publishing) to publish extension. 5. Build the `.vsix`. 6. Get the release note from the formated `CHANGELOG.md` by using `mindsers/changelog-reader-action`. 7. Create release. 8. Upload release asset. Other changes: 1. add `CHANGELOG.md` into `.prettierignore`. 2. add the script `deploy` for publish. 3. delete the script `version`. 4. delete the script `release`. 5. use the cmd of `sed 's/^### \[/## [/' -i CHANGELOG.md` to change the changelog content, because it will make content to fit the markdown rules. 6. use the cmd of `yarn prettier --write CHANGELOG.md --prose-wrap never --ignore-path ./gitignore ` to pretty the format of `CHANGELOG.md`, and it will make content to fill correcttly with the release body. Close #59
The
changelog-reader-action
can not read the third level heading, in which case the workflows failed when make a patch version update.The text was updated successfully, but these errors were encountered: