Skip to content

Commit

Permalink
Merge pull request #301 from insitu-project/chore/semantic-release/fi…
Browse files Browse the repository at this point in the history
…x-prepare

feat: work on semantic-release setup
  • Loading branch information
JalilArfaoui authored May 31, 2019
2 parents 898e42b + cfc6c84 commit f0c5608
Show file tree
Hide file tree
Showing 4 changed files with 537 additions and 27 deletions.
6 changes: 3 additions & 3 deletions manifest/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* See other files in the directory
*/

const version = process.env.npm_package_version;
const version = require('../package.json').version;

module.exports = Object.freeze({
name: 'Le Même en Mieux',
description:
'Qualité, prix, éthique : s’il existe un meilleur choix, vous le saurez. '
+ 'Gratuit et sans pub, respecte votre vie privée.',
'Qualité, prix, éthique : s’il existe un meilleur choix, vous le saurez. ' +
'Gratuit et sans pub, respecte votre vie privée.',
version,
manifest_version: 2,
icons: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"@semantic-release/changelog": "^3.0.0",
"@semantic-release/exec": "^2.3.0",
"@semantic-release/git": "^7.0.1",
"@semantic-release/npm": "^5.1.7",
"@semantic-release/github": "^5.0.1",
"@sentry/webpack-plugin": "^1.6.2",
"@storybook/addon-actions": "^4.1.11",
Expand Down
19 changes: 9 additions & 10 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
const release = Object.freeze({
analyzeCommits: {
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'MAJOR RELEASE']
}
},
verifyConditions: [
'@semantic-release/changelog',
'@semantic-release/git',
'@semantic-release/github',
'semantic-release-chrome'
],
analyzeCommits: {
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES', 'MAJOR RELEASE']
}
},
prepare: [
'@semantic-release/changelog',
'@semantic-release/npm',
{
path: '@semantic-release/git',
assets: ['package.json', 'yarn.lock', 'CHANGELOG.md', 'manifest/base.js'],
assets: ['package.json', 'yarn.lock', 'CHANGELOG.md'],
message:
'chore: release ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
}
],
publish: [
{
path: '@semantic-release/exec',
cmd:
'sed -i \'s/"version":\\s*"${lastRelease.version}"/"version": "${nextRelease.version}"/\' package.json && ' +
'yarn run release:production'
cmd: 'yarn run release:production'
},
{
path: '@semantic-release/github',
Expand Down
Loading

0 comments on commit f0c5608

Please sign in to comment.