Skip to content

Commit

Permalink
Merge 97af1bd into 2707ebc
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 9, 2020
2 parents 2707ebc + 97af1bd commit e0ab1af
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 37 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 }}'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"devDependencies": {
"ava": "^3.8.2",
"c8": "^7.1.2",
"documentation": "^12.3.0",
"documentation": "^13.0.0",
"semantic-release": "^17.0.7"
},
"engines": {
Expand Down

0 comments on commit e0ab1af

Please sign in to comment.