Skip to content

Commit

Permalink
Merge pull request #19 from miles-grant-ibigroup/master
Browse files Browse the repository at this point in the history
Add Typescript Types
  • Loading branch information
trevorgerhardt authored Jul 28, 2021
2 parents 91240d4 + 5c8eeb4 commit 948f87a
Show file tree
Hide file tree
Showing 11 changed files with 9,020 additions and 9,591 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Node.js CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
with:
# the IBI Group TSDX fork has some dependency issues
# that cause yarn install to fail on a ci runner. Disabling
# concurrency allows installation to complete successfully
install-command: yarn --frozen-lockfile --network-concurrency 1
- name: Lint Code
run: yarn lint
- name: Lint Docs
run: yarn lint-docs
- name: Test Code
run: yarn jest
- name: Build Package
run: yarn build

# at this point, the build is successful
- name: Semantic Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tmp

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
dist/

# Dependency directory
node_modules
Expand All @@ -32,3 +33,9 @@ node_modules

# Optional REPL history
.node_repl_history

# MacOS
.DS_Store

# Typescript type files
*.d.ts
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Coverage directory used by tools like istanbul
coverage
tmp

# Lock file
yarn.lock
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 948f87a

Please sign in to comment.