Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bobvanderlinden/harhar
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed May 24, 2020
2 parents d99d8e9 + a99efd5 commit f426c57
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: harhar CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Read .node-version
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .node-version)
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- name: Action For Semantic Release
uses: cycjimmy/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit f426c57

Please sign in to comment.