diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56f6f1f..1b69f50 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI -on: - push: - branches: - - master +on: [pull_request] jobs: CI: @@ -20,7 +17,7 @@ jobs: - name: Use Node.js (.nvmrc) uses: actions/setup-node@v2 with: - node-version: "${{ steps.nvm.outputs.NVMRC }}" + node-version: '${{ steps.nvm.outputs.NVMRC }}' - name: Use cached node_modules uses: actions/cache@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44a0efb..d3e76e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,8 @@ jobs: node-version: 'lts/*' - name: Install dependencies run: yarn + - name: Build + run: yarn build - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}