Skip to content

Commit 9b01750

Browse files
committed
👷 Only trigger release steps after lint steps
1 parent d3e9896 commit 9b01750

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

‎.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,12 @@ jobs:
9696
publish-on-testpypi:
9797
name: 📦 Publish on TestPyPI
9898
if: github.event_name == 'release'
99-
needs: build
99+
needs:
100+
- build
101+
- lint-black
102+
- lint-prettier
103+
- lint-isort
104+
- lint-flake8
100105
runs-on: ubuntu-latest
101106
steps:
102107
- name: ⬇ Download build result
@@ -114,7 +119,7 @@ jobs:
114119
publish-on-pypi:
115120
name: 📦 Publish tagged releases to PyPI
116121
if: github.event_name == 'release'
117-
needs: build
122+
needs: publish-on-testpypi
118123
runs-on: ubuntu-latest
119124
steps:
120125
- name: ⬇ Download build result

0 commit comments

Comments
 (0)