From fb9ef9e348fd5ae0ff1372fcfda1747fa04b35ba Mon Sep 17 00:00:00 2001 From: ianwremmel <1182361+ianwremmel@users.noreply.github.com> Date: Thu, 10 Mar 2022 19:26:20 -0800 Subject: [PATCH] fix: reorder release config so that version is correct [Fixes #181533539] --- .releaserc.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.releaserc.js b/.releaserc.js index 3633f49..fc7bc36 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -3,10 +3,6 @@ module.exports = { plugins: [ '@semantic-release/commit-analyzer', '@semantic-release/release-notes-generator', - ["@semantic-release/exec", { - "prepareCmd": "VERSION=${nextRelease.version} npm run build", - "publishCmd": "./scripts/publish-integrations" - }], '@semantic-release/npm', [ '@semantic-release/github', @@ -14,5 +10,11 @@ module.exports = { assets: ['dist/pkg/*'], }, ], + // Reminder: this needs to come after npm so that npm's `prepare` can update + // package.json with the new version. + ["@semantic-release/exec", { + "prepareCmd": "VERSION=${nextRelease.version} npm run build", + "publishCmd": "./scripts/publish-integrations" + }], ], };