From e55fead09f39430d30f48438f06e7bc2326efc94 Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 20 Sep 2022 17:45:11 +0100 Subject: [PATCH] fix: semantic release (#341) Same as #339 but stops library/standalone and library/HTMLPurifier.standalone.phpfrom being commit --- CHANGELOG.md | 6 ------ release.config.js | 44 ++++++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 26 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 55cb9029..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,6 +0,0 @@ -# [4.16.0](https://github.com/ezyang/htmlpurifier/compare/v4.15.0...v4.16.0) (2022-09-18) - - -### Features - -* add semantic release ([#307](https://github.com/ezyang/htmlpurifier/issues/307)) ([db31243](https://github.com/ezyang/htmlpurifier/commit/db312435cb9d8d73395f75f9642a43ba6de5e903)), closes [#322](https://github.com/ezyang/htmlpurifier/issues/322) [#323](https://github.com/ezyang/htmlpurifier/issues/323) [#326](https://github.com/ezyang/htmlpurifier/issues/326) [#327](https://github.com/ezyang/htmlpurifier/issues/327) [#328](https://github.com/ezyang/htmlpurifier/issues/328) [#329](https://github.com/ezyang/htmlpurifier/issues/329) [#330](https://github.com/ezyang/htmlpurifier/issues/330) [#331](https://github.com/ezyang/htmlpurifier/issues/331) [#332](https://github.com/ezyang/htmlpurifier/issues/332) [#333](https://github.com/ezyang/htmlpurifier/issues/333) [#337](https://github.com/ezyang/htmlpurifier/issues/337) [#335](https://github.com/ezyang/htmlpurifier/issues/335) [ezyang/htmlpurifier#334](https://github.com/ezyang/htmlpurifier/issues/334) [#336](https://github.com/ezyang/htmlpurifier/issues/336) [#338](https://github.com/ezyang/htmlpurifier/issues/338) diff --git a/release.config.js b/release.config.js index 3f73ace8..dcf13c6b 100644 --- a/release.config.js +++ b/release.config.js @@ -4,26 +4,30 @@ module.exports = { plugins: [ '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', - ['@semantic-release/changelog', {'changelogFile': 'NEWS'}], - '@semantic-release/exec', - ['@semantic-release/git', { - 'assets': ['VERSION', 'NEWS', 'Doxyfile', 'library/HTMLPurifier.php', 'library/HTMLPurifier/Config.php', 'library/HTMLPurifier.includes.php'], - }], + [ + '@semantic-release/changelog', + { + 'changelogFile': 'NEWS' + } + ], + [ + '@semantic-release/exec', + { + 'prepareCmd': 'php update-for-release ${nextRelease.version}' + } + ], + [ + '@semantic-release/git', + { + 'assets': [ + 'VERSION', + 'NEWS', + 'Doxyfile', + ['library/**/*', '!library/standalone/**/*', '!library/HTMLPurifier.standalone.php'], + 'configdoc/**/*', + ], + } + ], '@semantic-release/github' ], - verifyConditions: [ - '@semantic-release/changelog', - '@semantic-release/github', - ], - prepare: [ - { - path: '@semantic-release/exec', - cmd: 'php update-for-release ${nextRelease.version}' - }, - '@semantic-release/changelog', - '@semantic-release/git', - ], - publish: [ - '@semantic-release/github', - ] }