Skip to content

Commit

Permalink
separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
nmanu1 committed Oct 30, 2023
1 parent 04fbdee commit 5edceb7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'*}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5edceb7

Please sign in to comment.