From 90b2c226f9f0005f2eca90907f79bc7156f2348a Mon Sep 17 00:00:00 2001 From: Florian Maunier Date: Tue, 17 Dec 2024 18:03:15 +0100 Subject: [PATCH] ci(release): use alternative npm plugin to work around throttling issue --- .releaserc.js | 29 +++++++++++++++++++++++++++++ .releaserc.json | 14 -------------- package-lock.json | 8 ++++++++ package.json | 1 + 4 files changed, 38 insertions(+), 14 deletions(-) create mode 100644 .releaserc.js delete mode 100644 .releaserc.json diff --git a/.releaserc.js b/.releaserc.js new file mode 100644 index 0000000..eb980c6 --- /dev/null +++ b/.releaserc.js @@ -0,0 +1,29 @@ +export default { + branches: [ + 'master', + { + name: 'beta', + prerelease: true, + }, + { + name: 'eslint-9', + prerelease: true, + }, + ], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/changelog', + '@semrel-extra/npm', + '@semantic-release/github', + '@semantic-release/git', + [ + 'semantic-release-slack-bot', + { + notifyOnFail: false, + notifyOnSuccess: true, + slackWebhook: process.env.SEMANTIC_RELEASE_SLACK_WEBHOOK, + }, + ], + ], +}; diff --git a/.releaserc.json b/.releaserc.json deleted file mode 100644 index b87c704..0000000 --- a/.releaserc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": ["semantic-release-config-kuzzle"], - "branches": [ - "master", - { - "name": "beta", - "prerelease": true - }, - { - "name": "eslint-9", - "prerelease": true - } - ] -} diff --git a/package-lock.json b/package-lock.json index 0922cb5..8727667 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@eslint/js": "^9.17.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", + "@semrel-extra/npm": "^1.2.2", "cz-conventional-changelog": "^3.3.0", "eslint": "^9.17.0", "eslint-plugin-eslint-plugin": "^6.3.2", @@ -2383,6 +2384,13 @@ "node": ">=18" } }, + "node_modules/@semrel-extra/npm": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@semrel-extra/npm/-/npm-1.2.2.tgz", + "integrity": "sha512-QoOJFUd00ORaqOQUe2wYmwPwa7NRdGGfUhzjZ9UEZqoqymXaBDVmFF2hE3h8mFaTa/iWpAyRrrjTsg8HbSpZyw==", + "dev": true, + "license": "MIT" + }, "node_modules/@semrel-extra/topo": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/@semrel-extra/topo/-/topo-1.14.1.tgz", diff --git a/package.json b/package.json index dfe2c90..a8ba8b7 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "@eslint/js": "^9.17.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", + "@semrel-extra/npm": "^1.2.2", "cz-conventional-changelog": "^3.3.0", "eslint": "^9.17.0", "eslint-plugin-eslint-plugin": "^6.3.2",