From e779bfd522100970947f09f1fbe2db024c463b5d Mon Sep 17 00:00:00 2001 From: Robbe Van Petegem Date: Tue, 19 Sep 2023 16:27:31 +0200 Subject: [PATCH] Only create a release if publishing was successful --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ebb906b..9b553f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,10 @@ jobs: - name: Parse tag id: parse_tag run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'" + - name: Publish + run: yarn workspace @tree-company/eslint-config publish && yarn workspace @tree-company/stylelint-config publish + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create release id: create_release uses: release-drafter/release-drafter@v5 @@ -35,7 +39,3 @@ jobs: publish: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish - run: yarn workspace @tree-company/eslint-config publish && yarn workspace @tree-company/stylelint-config publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file