Skip to content

Commit

Permalink
ci: Fixed release process
Browse files Browse the repository at this point in the history
  • Loading branch information
BottlecapDave committed Dec 22, 2021
1 parent 3af07d8 commit 84b8754
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
[
"@semantic-release/git", {
"assets": ["package.json", "CHANGELOG.md", "./custom_components/first_bus/manifest.json"],
"assets": ["package.json", "CHANGELOG.md"],
"message": "release: Released v${nextRelease.version} [skip ci]"
}
]
Expand Down
13 changes: 0 additions & 13 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commit": "cz",
"release": "semantic-release",
"docker-build": "(cd ./reminder && docker build -t bottlecapdave/gitlab-merge-request-reminder:latest .)",
"docker-release": "(cd ./reminder && docker push bottlecapdave/gitlab-merge-request-reminder:latest) && (cd ./reminder && docker push bottlecapdave/gitlab-merge-request-reminder:$TAG)"
"docker-release": "(cd ./reminder && docker tag bottlecapdave/gitlab-merge-request-reminder:latest bottlecapdave/gitlab-merge-request-reminder:$TAG && docker push bottlecapdave/gitlab-merge-request-reminder:latest && docker push bottlecapdave/gitlab-merge-request-reminder:$TAG)"
},
"repository": {
"type": "git",
Expand Down
10 changes: 4 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ merge-request-reminder:

## Build

Tag the commit in the form of `v{MAJOR}.{Minor}.{Bugfix}` and then run `npm run build-docker`
You can run `npm run docker-build` to build a local docker image, which can then be run locally.

e.g.
```
git tag v1.0.0
npm run docker-build
```
## Releases

To release a new version, merge into `main`. The github CI will then create a release based on the commitizen messages.

0 comments on commit 84b8754

Please sign in to comment.