diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3dca212..dfb4819 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -4,23 +4,24 @@ name: Node.js CI # Trigger the workflow on push or pull request -on: [push, pull_request] +on: + push: + pull_request: + release: + types: [created] jobs: - build: - + build-and-test-code: runs-on: ubuntu-latest - strategy: matrix: node-version: [12.x, 14.x, 16.x] - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm ci + - run: npm run build --if-present + - run: npm test