From c970cda451a3a3b53c9d42c721524b22a7714544 Mon Sep 17 00:00:00 2001 From: Adrien Joly <531781+adrienjoly@users.noreply.github.com> Date: Sun, 26 Apr 2020 11:13:50 +0200 Subject: [PATCH] fix(ci): skip github actions workflow on release commits + re-format the yml file --- .github/workflows/nodejs.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1c8595b..3cf5b0e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,30 +3,29 @@ name: Node CI on: push: branches: - - master + - master pull_request: branches: - - master + - master jobs: build: - runs-on: ubuntu-latest + if: "!contains(github.event.head_commit.message, '[skip ci]')" strategy: matrix: node-version: [8.x, 10.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: npm install, build, and test - run: | - npm install - npm run build --if-present - npm test - env: - CI: true + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install and test + run: | + npm install + npm test + env: + CI: true