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

feat(actions): ♻️ rebuild CI build system #61

Closed
wants to merge 14 commits into from
Closed

Conversation

yi-Xu-0100
Copy link
Collaborator

@yi-Xu-0100 yi-Xu-0100 commented Mar 10, 2021

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 and push the commit.
  4. Follow the official tutorials 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

@yi-Xu-0100 yi-Xu-0100 self-assigned this Mar 10, 2021
@yi-Xu-0100 yi-Xu-0100 added the enhancement New feature or request label Mar 10, 2021
@yi-Xu-0100
Copy link
Collaborator Author

@vivaxy If there are no more suggestions for the steps, I will squash and merge the PR then test the workflow. 😀

@yi-Xu-0100 yi-Xu-0100 changed the title feat(actions): fix CI build system feat(actions): rebuild CI build system Mar 10, 2021
@yi-Xu-0100 yi-Xu-0100 changed the title feat(actions): rebuild CI build system feat(actions): ♻️ rebuild CI build system Mar 10, 2021
@yi-Xu-0100 yi-Xu-0100 changed the title feat(actions): ♻️ rebuild CI build system feat(actions): ♻️ rebuild CI build system Mar 10, 2021
Copy link
Owner

@vivaxy vivaxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've done a great job!👍

Sorry for my curiosity. There are some questions that I am not sure why. Could you please help clarifying them?

.github/workflows/release.yml Outdated Show resolved Hide resolved
.prettierignore Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore(release): :bookmark: release v${{steps.version.outputs.version}}"
git push https://x-access-token:${{secrets.GITHUB_TOKEN}}@github.com/${{github.GITHUB_REPOSITORY}}.git
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to have a git tag here. Previously --skip.tag was used in standard-version.

@yi-Xu-0100 yi-Xu-0100 closed this Mar 11, 2021
@yi-Xu-0100 yi-Xu-0100 deleted the fix-CI-build branch March 11, 2021 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] generate failed when make a patch version update
2 participants