diff --git a/.github/workflows/github-ci.yaml b/.github/workflows/github-ci.yaml index acc5059..352bc6b 100644 --- a/.github/workflows/github-ci.yaml +++ b/.github/workflows/github-ci.yaml @@ -1,16 +1,21 @@ name: GitHub CI -on: [push, pull_request] +on: + push: + branches: [master] + tags: + - '*' + pull_request: jobs: test: runs-on: ubuntu-latest strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: [14.x, 16.x, 'lts/*'] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - run: docker-compose up -d @@ -40,9 +45,9 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: '14' + node-version: 'lts/*' - run: npm install - name: semantic-release run: npm run semantic-release