Skip to content

Commit

Permalink
Merge a21dc1e into d1bba28
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 9, 2020
2 parents d1bba28 + a21dc1e commit 2b683e3
Showing 1 changed file with 31 additions and 36 deletions.
67 changes: 31 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,38 @@
name: CI

on: push

'on': push
jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.2]

node-version:
- '14.2'
steps:
- uses: actions/checkout@v2

- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build / Test Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm run cover --if-present

- name: Release
uses: actions/setup-node@v1
- run: npx semantic-release
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v1
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: >-
${{ runner.os }}-build-${{ env.cache-name }}-${{
hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Build / Test Node ${{ matrix.node-version }}'
uses: actions/setup-node@v1
with:
node-version: '${{ matrix.node-version }}'
- run: npm install
- run: npm run build --if-present
- run: npm run cover --if-present
- name: Release
uses: actions/setup-node@v1
- run: npx semantic-release
env:
CI: 'true'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 2b683e3

Please sign in to comment.