From 2ca31ac1cb96d96f4d827f4eabd8e4dd550fcb0f Mon Sep 17 00:00:00 2001 From: Stanley Goldman Date: Sun, 8 Sep 2019 17:49:00 -0400 Subject: [PATCH] Adding Semantic-Release --- .chglog/CHANGELOG.tpl.md | 58 ------------------------------ .chglog/config.yml | 30 ---------------- GitVersion.yml | 1 + appveyor.yml | 7 ++-- chagelog.md | 76 ---------------------------------------- package.json | 61 ++++++++++++++++++++++++++++++++ 6 files changed, 64 insertions(+), 169 deletions(-) delete mode 100644 .chglog/CHANGELOG.tpl.md delete mode 100644 .chglog/config.yml delete mode 100644 chagelog.md create mode 100644 package.json diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md deleted file mode 100644 index e7e7fa9b..00000000 --- a/.chglog/CHANGELOG.tpl.md +++ /dev/null @@ -1,58 +0,0 @@ -{{ if .Versions -}} -{{ if .Unreleased.CommitGroups -}} - -## [Unreleased] - -{{ range .Unreleased.CommitGroups -}} -### {{ .Title }} -{{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} -{{ end }} -{{ end -}} -{{ end -}} -{{ end -}} - -{{ range .Versions }} - -## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} -{{ range .CommitGroups -}} -### {{ .Title }} -{{ range .Commits -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} -{{ end }} -{{ end -}} - -{{- if .RevertCommits -}} -### Reverts -{{ range .RevertCommits -}} -- {{ .Revert.Header }} -{{ end }} -{{ end -}} - -{{- if .MergeCommits -}} -### Pull Requests -{{ range .MergeCommits -}} -- {{ .Header }} -{{ end }} -{{ end -}} - -{{- if .NoteGroups -}} -{{ range .NoteGroups -}} -### {{ .Title }} -{{ range .Notes }} -{{ .Body }} -{{ end }} -{{ end -}} -{{ end -}} -{{ end -}} - -{{- if .Versions }} -{{ if .Unreleased.CommitGroups -}} -[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD -{{ end -}} -{{ range .Versions -}} -{{ if .Tag.Previous -}} -[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} -{{ end -}} -{{ end -}} -{{ end -}} \ No newline at end of file diff --git a/.chglog/config.yml b/.chglog/config.yml deleted file mode 100644 index 4110e282..00000000 --- a/.chglog/config.yml +++ /dev/null @@ -1,30 +0,0 @@ -style: github -template: CHANGELOG.tpl.md -info: - title: CHANGELOG - repository_url: https://github.com/justaprogrammer/Son-of-Picasso -options: - commits: - filters: - Type: - - feat - - fix - - perf - - refactor - - chore - commit_groups: - title_maps: - feat: Features - fix: Bug Fixes - perf: Performance Improvements - refactor: Code Refactoring - chore: Chores - header: - pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$" - pattern_maps: - - Type - - Scope - - Subject - notes: - keywords: - - BREAKING CHANGE \ No newline at end of file diff --git a/GitVersion.yml b/GitVersion.yml index 6f7a2b6c..556ffdff 100644 --- a/GitVersion.yml +++ b/GitVersion.yml @@ -1,3 +1,4 @@ +next-version: 1.0.0 branches: {} ignore: sha: [] diff --git a/appveyor.yml b/appveyor.yml index 265895cc..66aeb615 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,6 +7,7 @@ install: - choco install dotnetcore-sdk --version 3.0.100-preview9-014004 --pre - choco install codecov --no-progress --confirm - choco install gitversion.portable --no-progress --confirm + - npm install -g semantic-release @semantic-release/changelog @semantic-release/git cache: - '%LOCALAPPDATA%\Temp\Chocolatey -> appveyor.yml' - '.fake -> Build.fsx' @@ -17,8 +18,4 @@ build_script: - ps: >- fake build --parallel 4 test: off -deploy: -- provider: Environment - name: GitHub - on: - APPVEYOR_REPO_TAG: true \ No newline at end of file +deploy_script: semantic-release \ No newline at end of file diff --git a/chagelog.md b/chagelog.md deleted file mode 100644 index 3c5bea48..00000000 --- a/chagelog.md +++ /dev/null @@ -1,76 +0,0 @@ - - -## [v0.0.3] - 2019-03-04 -### Chores -- Moving and adding tests for ImageLoadingService -- Functionality to generate some exif data with genreated images -- Adding tests for the ImageLocationService -- Exclude designer files from codecov -- Adding codecov reach graph -- Excluding xaml and xaml.cs from codecov -- Adding codecov coverage flags -- Tweaking how code coverage is computed - -### Features -- Created ImageManagementService to handle data operations - -### Pull Requests -- Merge pull request [#16](https://github.com/justaprogrammer/Son-of-Picasso/issues/16) from justaprogrammer/image-management -- Merge pull request [#17](https://github.com/justaprogrammer/Son-of-Picasso/issues/17) from justaprogrammer/more-tests -- Merge pull request [#18](https://github.com/justaprogrammer/Son-of-Picasso/issues/18) from justaprogrammer/exif-data -- Merge pull request [#15](https://github.com/justaprogrammer/Son-of-Picasso/issues/15) from justaprogrammer/codecov-tweak -- Merge pull request [#14](https://github.com/justaprogrammer/Son-of-Picasso/issues/14) from justaprogrammer/adding-tests - - - -## [v0.0.2] - 2019-02-20 -### Bug Fixes -- Addressing memory issues by using virtualization correctly -- Correcting ReactiveUI binding - -### Chores -- Command line functionality to create test images and clear cache -- Remove nuget artifact from clean task in build script -- Fixing repository url in changelog template -- Change changelog template to not show unreleased commits by default - -### Pull Requests -- Merge pull request [#13](https://github.com/justaprogrammer/Son-of-Picasso/issues/13) from justaprogrammer/image-converter -- Merge pull request [#12](https://github.com/justaprogrammer/Son-of-Picasso/issues/12) from justaprogrammer/binding-nitpick -- Merge pull request [#10](https://github.com/justaprogrammer/Son-of-Picasso/issues/10) from justaprogrammer/command-line-dev-tools -- Merge pull request [#11](https://github.com/justaprogrammer/Son-of-Picasso/issues/11) from justaprogrammer/build-fix -- Merge pull request [#9](https://github.com/justaprogrammer/Son-of-Picasso/issues/9) from justaprogrammer/changelog-template -- Merge pull request [#8](https://github.com/justaprogrammer/Son-of-Picasso/issues/8) from justaprogrammer/changelog-template - - - -## v0.0.1 - 2019-01-21 -### Bug Fixes -- Fixing project nuget references -- Add IImageFolderViewModel to DI for testing ApplicationViewModel -- Tests need Serilog.Sinks.XUnit - -### Chores -- Being explicit about what gets reported in code coverage -- Using parallel execution in fake.build -- Functionality to deploy to github releases on tag -- Functionality to package results in build -- Adding readme.md -- Adding chore as a changelog mention - -### Code Refactoring -- Update Nuget packages -- Moving source code to /src - -### Features -- Adding Fake build, Codecov and AppVeyor support - -### Pull Requests -- Merge pull request [#7](https://github.com/justaprogrammer/Son-of-Picasso/issues/7) from justaprogrammer/chores -- Merge pull request [#4](https://github.com/justaprogrammer/Son-of-Picasso/issues/4) from justaprogrammer/fake-build -- Merge pull request [#5](https://github.com/justaprogrammer/Son-of-Picasso/issues/5) from justaprogrammer/move-source -- Merge pull request [#6](https://github.com/justaprogrammer/Son-of-Picasso/issues/6) from justaprogrammer/fix-test - - -[v0.0.3]: https://github.com/justaprogrammer/Son-of-Picasso/compare/v0.0.2...v0.0.3 -[v0.0.2]: https://github.com/justaprogrammer/Son-of-Picasso/compare/v0.0.1...v0.0.2 diff --git a/package.json b/package.json new file mode 100644 index 00000000..d3adf362 --- /dev/null +++ b/package.json @@ -0,0 +1,61 @@ +{ + "name": "sonofpicasso", + "version": "0.1.0", + "description": "SonOfPicasso", + "main": "index.js", + "dependencies": {}, + "devDependencies": {}, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/justaprogrammer/Son-of-Picasso.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/justaprogrammer/Son-of-Picasso/issues" + }, + "homepage": "https://github.com/justaprogrammer/Son-of-Picasso", + "release": { + "branch": "master", + "plugins": [ + [ + "@semantic-release/commit-analyzer", + {} + ], + [ + "@semantic-release/release-notes-generator", + {} + ], + [ + "@semantic-release/npm", + { + "npmPublish": false + } + ], + [ + "@semantic-release/github", + { + "assets": "build/*.zip" + } + ], + [ + "@semantic-release/changelog", + { + "changelogFile": "CHANGELOG.md" + } + ], + [ + "@semantic-release/git", + { + "assets": [ + "CHANGELOG.md" + ], + "message": "Bump to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } + ] + ] + } +}