diff --git a/.github/workflows/nodejs.yml b/.github/workflows/ci.yml similarity index 73% rename from .github/workflows/nodejs.yml rename to .github/workflows/ci.yml index 80d48d6..cc889d8 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: Node CI -on: [push] +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] jobs: build: @@ -11,9 +15,9 @@ jobs: node-version: [12.x, 14.x, lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: npm install, build, and test