diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0a7709f34..10b316479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,6 @@ jobs: - uses: actions/setup-node@v3 - name: check commit name id: vars - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | COMMIT_MSG="${{ github.event.head_commit.message }}" COMMIT_TITLE="${COMMIT_MSG%%$'\n'*}" @@ -57,18 +55,18 @@ jobs: needs: check-for-release runs-on: ubuntu-latest if: needs.check-for-release.outputs.status == 'success' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 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`." - gh run cancel ${{ github.run_id }} - exit 1 + - name: eslint check + run: npx eslint --max-warnings=0 . + - name: prettier check + run: npx prettier --check . + - name: cancel workflow + if: ${{ failure() }} + run: gh run cancel ${{ github.run_id }} run-tests: needs: check-for-release