diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7637977f07..b415610673 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,9 +9,16 @@ name: PouchDB CI on: - push: {} + push: + paths: + - '**' + - '!docs/**' pull_request: branches: [master] + paths: + - '**' + - '!docs/**' + env: NODE_VERSION: 14 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3f7c68ec67..9643d52912 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,7 +52,7 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - needs: build + needs: test-docs steps: - name: Deploy to GitHub Pages id: deployment diff --git a/packages/node_modules/sublevel-pouchdb/src/index.js b/packages/node_modules/sublevel-pouchdb/src/index.js index 67f8a2523e..5fd7e2a179 100644 --- a/packages/node_modules/sublevel-pouchdb/src/index.js +++ b/packages/node_modules/sublevel-pouchdb/src/index.js @@ -4,7 +4,7 @@ import Codec from 'level-codec'; import ReadStream from './readStream'; import precodec from './legacyCodec'; -var codec = new Codec(); +const codec = new Codec(); function sublevelPouch(db) { return shell(nut(db, precodec, codec), [], ReadStream, db.options);