From 96f1bb042990b22305d6297fd47eed18ef5523a0 Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Mon, 16 Jan 2023 13:56:17 +0100 Subject: [PATCH] refactor: enforce changelog generation for tags --- src/common.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/common.ts b/src/common.ts index 2f49dc82..09d34adc 100644 --- a/src/common.ts +++ b/src/common.ts @@ -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', },