From ff60cd4c0bf91bfd9803a4553b03a0892c7b203a Mon Sep 17 00:00:00 2001 From: Josh Brown Date: Mon, 20 Jan 2020 17:21:01 -0500 Subject: [PATCH] feat: Add semantic-release --- .github/workflows/publish.yml | 26 +++++--------------------- .github/workflows/test.yml | 17 +++++++---------- 2 files changed, 12 insertions(+), 31 deletions(-) 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