Skip to content

Commit

Permalink
Only create a release if publishing was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
robbevp committed Sep 19, 2023
1 parent d6aef46 commit e779bfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit e779bfd

Please sign in to comment.