Skip to content

Commit

Permalink
ci(fix): checkout repo and use single step
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 28, 2024
1 parent 3b52f1e commit dc2e783
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand All @@ -24,16 +27,8 @@ jobs:
- name: Run tests
run: npx jest --coverage --runInBand --testTimeout=900000 --forceExit

release:
runs-on: ubuntu-latest
needs: linux
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Release package
if: github.ref == 'refs/heads/master'
run: |
set -e
npm ci
Expand Down

0 comments on commit dc2e783

Please sign in to comment.