Skip to content

Commit

Permalink
workflow(release): add git plugin to retain changelog and version
Browse files Browse the repository at this point in the history
  • Loading branch information
dmccaffery committed Dec 7, 2020
1 parent 3756d95 commit 2aaec39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ jobs:
@semantic-release/release-notes-generator \
@semantic-release/changelog \
@semantic-release/exec \
@semantic-release/github
@semantic-release/github \
@semantic-release/git
- name: semantic-release-dry-run
run: npx semantic-release --ci --dry-run
Expand Down
13 changes: 7 additions & 6 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
branches:
- master
- +([0-9])?(.{+([0-9]),x}).x
- name: next
prerelease: true

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
- path: "@semantic-release/exec"
prepareCmd: echo ${nextRelease.gitHead} > VERSION
- path: "@semantic-release/github"
- path: "@semantic-release/git"
assets:
- CHANGELOG.md
- VERSION

branches:
- master
- +([0-9])?(.{+([0-9]),x}).x
- name: next
prerelease: true

0 comments on commit 2aaec39

Please sign in to comment.