Skip to content

Commit

Permalink
fix: update dependencies and move documentation to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 11, 2020
1 parent 4798797 commit 78e0724
Show file tree
Hide file tree
Showing 50 changed files with 48 additions and 91,734 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v1
- uses: actions/setup-node@v2-beta
with:
node-version: 14
- name: npm install and test
run: |
npm install
npm run eslint
node-version: 14.x
- name: Install dependencies
run: npm install
- name: Run ESLint
run: npm run eslint
test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -26,10 +25,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm install
npm run test-coverage
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test-coverage
- name: Send coverage report to Codecov
uses: codecov/codecov-action@v1
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
- uses: GoogleCloudPlatform/release-please-action@v2.5.3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.BOT_TOKEN }}
release-type: node
package-name: ml-matrix
bump-minor-pre-major: Yes
- uses: actions/checkout@v2
# These if statements ensure that a publication only occurs when a new release is created
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2-beta
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy TypeDoc on GitHub pages

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build documentation
uses: zakodium/typedoc-action@v1
with:
entry: 'matrix.d.ts'
- name: Deploy to GitHub pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
BRANCH: gh-pages
FOLDER: docs
CLEAN: true
Loading

0 comments on commit 78e0724

Please sign in to comment.