Skip to content

Commit

Permalink
add build github action
Browse files Browse the repository at this point in the history
  • Loading branch information
a179346 committed Aug 16, 2021
1 parent d0df449 commit 37f2301
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
2 changes: 0 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ on:
types: [created]

jobs:

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h1 align="center">knex-tree 👋</h1>
<p>
<img alt="Version" src="https://img.shields.io/badge/version-0.0.1-blue.svg?cacheSeconds=2592000" />
<a href="https://www.npmjs.com/package/knex-tree" target="_blank">
<img alt="Documentation" src="https://img.shields.io/npm/v/knex-tree?maxAge=3600)" />
</a>
<a href="https://github.com/a179346/knex-tree#readme" target="_blank">
<img alt="Documentation" src="https://img.shields.io/badge/documentation-yes-brightgreen.svg" />
</a>
Expand All @@ -16,6 +18,7 @@
## 🔗 Link
+ [Github](https://github.com/a179346/knex-tree#readme)
+ [npm](https://www.npmjs.com/package/knex-tree)

## 📥 Install

Expand Down

0 comments on commit 37f2301

Please sign in to comment.