mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
refactor: enforce changelog generation for tags
This commit is contained in:
@@ -735,8 +735,7 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
'changelog':
|
'changelog':
|
||||||
"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update 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',
|
'check-configuration': 'openstapps-configuration',
|
||||||
'postversion': 'npm run changelog',
|
'preversion': 'npm run prepublishOnly && npm run changelog',
|
||||||
'preversion': 'npm run prepublishOnly',
|
|
||||||
'push': 'git push && git push origin "v$npm_package_version"',
|
'push': 'git push && git push origin "v$npm_package_version"',
|
||||||
'lint': 'eslint --ext .ts src/',
|
'lint': 'eslint --ext .ts src/',
|
||||||
};
|
};
|
||||||
@@ -769,6 +768,13 @@ export function getRules(configuration: Configuration): Rules {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
'npm audit': {
|
'npm audit': {
|
||||||
|
allow_failure: true,
|
||||||
|
except: ['schedules'],
|
||||||
|
script: ['npm audit --production'],
|
||||||
|
stage: 'audit',
|
||||||
|
},
|
||||||
|
'scheduled npm audit': {
|
||||||
|
only: ['schedules'],
|
||||||
script: ['npm audit --production'],
|
script: ['npm audit --production'],
|
||||||
stage: 'audit',
|
stage: 'audit',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user