refactor: enforce changelog generation for tags

This commit is contained in:
Rainer Killinger
2023-01-16 13:56:17 +01:00
parent 7aafd9cc85
commit 96f1bb0429

View File

@@ -735,8 +735,7 @@ export function getRules(configuration: Configuration): Rules {
'changelog':
"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
'check-configuration': 'openstapps-configuration',
'postversion': 'npm run changelog',
'preversion': 'npm run prepublishOnly',
'preversion': 'npm run prepublishOnly && npm run changelog',
'push': 'git push && git push origin "v$npm_package_version"',
'lint': 'eslint --ext .ts src/',
};
@@ -769,6 +768,13 @@ export function getRules(configuration: Configuration): Rules {
},
},
'npm audit': {
allow_failure: true,
except: ['schedules'],
script: ['npm audit --production'],
stage: 'audit',
},
'scheduled npm audit': {
only: ['schedules'],
script: ['npm audit --production'],
stage: 'audit',
},