diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52f8d2d09..864b5e1ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,17 +52,21 @@ jobs: echo "Error running the bump-version.mjs script." cat temp-bump-versions.txt exit 1 - # - uses: ./.github/setup-ci - # - name: check linting - # run: | - # npm run autofix - # if git diff --exit-code - # exit 0 - # fi - # echo "Found unexpected git diff from running `npm run autofix`." - # exit 1 - # - name: run tests - # uses: ./.github/workflows/run-tests.yml + + check-linting: + needs: check-for-release + if: needs.check-for-release.outputs.status == 'success' + steps: + - uses: actions/checkout@v3 + - uses: ./.github/setup-ci + - name: check linting + run: | + npm run autofix + if git diff --exit-code + exit 0 + fi + echo "Found unexpected git diff from running `npm run autofix`." + exit 1 run-tests: needs: check-for-release