From b9aacea1cb8c2dbf50fa6162db83f444a1d44dfd Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 12 Nov 2024 09:27:44 +0000 Subject: [PATCH] Fix release scripts Regressed by https://github.com/matrix-org/matrix-js-sdk/pull/4496 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/release-make.yml | 4 +++- .github/workflows/release-npm.yml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-make.yml b/.github/workflows/release-make.yml index 2900ade423..84d3c8d156 100644 --- a/.github/workflows/release-make.yml +++ b/.github/workflows/release-make.yml @@ -136,7 +136,9 @@ jobs: done - name: Bump package.json version - run: yarn version --no-git-tag-version --new-version "${VERSION#v}" + run: | + yarn version --no-git-tag-version --new-version "${VERSION#v}" + git add package.json - name: Add to CHANGELOG.md if: inputs.final diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index cc1aeb1c50..b313e7536b 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -39,6 +39,10 @@ jobs: tag: next ignore-scripts: false + - name: Check npm package was published + if: steps.npm-publish.outputs.id == '' + run: exit 1 + - name: 🎖️ Add `latest` dist-tag to final releases if: steps.npm-publish.outputs.id && !contains(steps.npm-publish.outputs.id, '-rc.') run: npm dist-tag add "$release" latest