diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f9b3b4..beb8b46 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,24 +6,8 @@ on: - master jobs: - verify: - name: Verify - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: | - npm install - npm run ci - env: - CI: true - release: + name: Release needs: verify runs-on: ubuntu-latest @@ -34,12 +18,12 @@ jobs: uses: actions/setup-node@v1 with: node-version: 12 - - name: Install and build - run: | - npm install - npm run build + - name: Install, build, and verify env: CI: true + run: | + npm install + npm run ci - name: Release env: NPM_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6e70ea..346fb8f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,15 +1,13 @@ name: CI on: - push: - branches: - - 'master' pull_request: branches: - 'master' jobs: - build: + verify: + name: Verify runs-on: ubuntu-latest strategy: @@ -17,18 +15,17 @@ jobs: node-version: [8.x, 10.x, 12.x] steps: - - uses: actions/checkout@v1 + - name: Checkout + uses: actions/checkout@v1 with: fetch-depth: 1 - - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - - - name: Run checks + - name: Run Checks + env: + CI: true run: | npm install npm run ci - env: - CI: true