Skip to content

Commit

Permalink
fix(ci): skip github actions workflow on release commits
Browse files Browse the repository at this point in the history
+ re-format the yml file
  • Loading branch information
adrienjoly committed Apr 26, 2020
1 parent e5f5bc7 commit c970cda
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c970cda

Please sign in to comment.