Skip to content

Commit

Permalink
Merge branch 'typescript' of github.com:sebbo2002/js-template into de…
Browse files Browse the repository at this point in the history
…velop

# Conflicts:
#	.github/workflows/test-release.yml
#	Dockerfile
#	README.md
#	package-lock.json
#	package.json
#	release.config.js
  • Loading branch information
sebbo2002 committed Jul 27, 2021
2 parents 4bf3d6b + 51616c6 commit f5c0cd9
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 93 deletions.
116 changes: 56 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@
"devDependencies": {
"@qiwi/semantic-release-gh-pages-plugin": "^5.1.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.3",
"@semantic-release/npm": "^7.1.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"@touch4it/ical-timezones": "1.7.0",
"@types/luxon": "^1.27.1",
"@types/mocha": "^8.2.3",
Expand Down
83 changes: 53 additions & 30 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
const configuration = {
'branches': [
'main',
{
Expand All @@ -7,33 +7,56 @@ module.exports = {
'prerelease': true
}
],
'plugins': [
['@semantic-release/commit-analyzer', {
'releaseRules': [
{'type': 'build', 'scope': 'deps', 'release': 'patch'},
{'type': 'docs', 'release': 'patch'}
]
}],
'@semantic-release/release-notes-generator',
['@semantic-release/exec', {
'prepareCmd': './.github/workflows/build.sh'
}],
'@semantic-release/changelog',
'semantic-release-license',
'@semantic-release/npm',
['@semantic-release/github', {
'labels': false,
'assignees': process.env.GH_OWNER
}],
['@semantic-release/git', {
'assets': ['CHANGELOG.md', 'LICENSE'],
'message': 'chore(release): :bookmark: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}],
['@qiwi/semantic-release-gh-pages-plugin', {
'msg': 'docs: Updated for <%= nextRelease.gitTag %>',
'src': './docs',
'dst': `./${process.env.BRANCH}`,
'pullTagsBranch': 'main'
}]
]
'plugins': []
};

configuration.plugins.push(['@semantic-release/commit-analyzer', {
'releaseRules': [
{'type': 'build', 'scope': 'deps', 'release': 'patch'},
{'type': 'docs', 'release': 'patch'}
]
}]);

configuration.plugins.push('@semantic-release/release-notes-generator');

configuration.plugins.push(['@semantic-release/exec', {
'prepareCmd': './.github/workflows/build.sh'
}]);

configuration.plugins.push('@semantic-release/changelog');

configuration.plugins.push('semantic-release-license');

configuration.plugins.push('@semantic-release/npm');

configuration.plugins.push(['@semantic-release/github', {
'labels': false,
'assignees': process.env.GH_OWNER
}]);

configuration.plugins.push(['@semantic-release/git', {
'assets': ['CHANGELOG.md', 'LICENSE'],
'message': 'chore(release): :bookmark: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}]);

const dockerImages = [];
if (process.env.DOCKER_LOCAL_IMAGE_DH) {
dockerImages.push(process.env.DOCKER_LOCAL_IMAGE_DH);
}
if (process.env.DOCKER_LOCAL_IMAGE_GH) {
dockerImages.push(process.env.DOCKER_LOCAL_IMAGE_GH);
}
if(dockerImages.length > 0) {
configuration.plugins.push(['@sebbo2002/semantic-release-docker', {
images: dockerImages
}]);
}

configuration.plugins.push(['@qiwi/semantic-release-gh-pages-plugin', {
'msg': 'docs: Updated for <%= nextRelease.gitTag %>',
'src': './docs',
'dst': `./${process.env.BRANCH}`,
'pullTagsBranch': 'main'
}]);

module.exports = configuration;

0 comments on commit f5c0cd9

Please sign in to comment.