Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
Release-as: v1.0.0
  • Loading branch information
targos committed Mar 24, 2021
1 parent 56bfd42 commit 4d25016
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 36 deletions.
1 change: 1 addition & 0 deletions .github/workflows/documentationjs.yml
@@ -1,6 +1,7 @@
name: Deploy documentation.js on GitHub pages

on:
workflow_dispatch:
release:
types: [published]

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/nodejs.yml
Expand Up @@ -5,14 +5,17 @@ on:
branches: master
pull_request:

env:
NODE_VERSION: 14.x

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm install
- name: Run ESLint
Expand All @@ -22,10 +25,11 @@ jobs:
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2-beta
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Expand Up @@ -5,28 +5,33 @@ on:
branches:
- master

env:
NODE_VERSION: 14.x

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2.5.6
- name: Get package name
run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
token: ${{ secrets.BOT_TOKEN }}
release-type: node
package-name: 'ml-matrix-convolution'
package-name: ${{ env.PACKAGE_NAME }}
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@v2-beta
- uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm install
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_BOT_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
28 changes: 16 additions & 12 deletions README.md
@@ -1,16 +1,16 @@
# ml-matrix-convolution

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![David deps][david-image]][david-url]
[![npm download][download-image]][download-url]
matrix convolution
[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![Test coverage][codecov-image]][codecov-url]
[![npm download][download-image]][download-url]

Matrix convolution.

## Installation

```bash
$ npm install ml-matrix-convolution
```console
npm i ml-matrix-convolution
```

```js
Expand All @@ -34,14 +34,18 @@ let conv1 = MatrixConvolution.direct(matrix, kernel);

let conv2 = MatrixConvolution.fft(matrix, kerne11);

console.log({conv1, conv2}); // both should be equal
console.log({ conv1, conv2 }); // both should be equal
```

## License

[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/ml-matrix-convolution.svg?style=flat-square
[npm-image]: https://img.shields.io/npm/v/ml-matrix-convolution.svg
[npm-url]: https://npmjs.org/package/ml-matrix-convolution
[download-image]: https://img.shields.io/npm/dm/ml-matrix-convolution.svg?style=flat-square
[download-url]: https://npmjs.org/package/ml-matrix-convolution
[codecov-image]: https://img.shields.io/codecov/c/github/mljs/matrix-convolution.svg
[codecov-url]: https://codecov.io/gh/mljs/matrix-convolution
[ci-image]: https://github.com/mljs/matrix-convolution/workflows/Node.js%20CI/badge.svg?branch=master
[ci-url]: https://github.com/mljs/matrix-convolution/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/ml-matrix-convolution.svg
[download-url]: https://npmjs.org/package/ml-matrix-convolution
28 changes: 12 additions & 16 deletions package.json
Expand Up @@ -13,13 +13,13 @@
"eslint-fix": "npm run eslint -- --fix",
"prepublishOnly": "rollup -c",
"compile": "npm run prepublishOnly",
"test": "npm run compile && npm run test-coverage && npm run eslint",
"test": "npm run test-coverage && npm run eslint",
"test-coverage": "jest --coverage",
"test-only": "jest"
},
"repository": {
"type": "git",
"url": "https://github.com/mljs/convolution.git"
"url": "https://github.com/mljs/matrix-convolution.git"
},
"keywords": [
"machine",
Expand All @@ -31,7 +31,7 @@
"author": "Andrés Castillo",
"license": "MIT",
"bugs": {
"url": "https://github.com/mljs/convolution/issues"
"url": "https://github.com/mljs/matrix-convolution/issues"
},
"jest": {
"testEnvironment": "node"
Expand All @@ -43,22 +43,18 @@
"tabWidth": 2,
"trailingComma": "all"
},
"homepage": "https://github.com/mljs/convolution#readme",
"homepage": "https://github.com/mljs/matrix-convolution#readme",
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
"@types/jest": "^26.0.15",
"eslint": "^7.12.0",
"eslint-config-cheminfo": "^5.2.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^26.6.1",
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
"@types/jest": "^26.0.21",
"eslint": "^7.22.0",
"eslint-config-cheminfo": "^5.2.3",
"jest": "^26.6.3",
"jest-matcher-deep-close-to": "^2.0.1",
"prettier": "^2.1.2",
"rollup": "^2.32.1"
"prettier": "^2.2.1",
"rollup": "^2.42.3"
},
"dependencies": {
"ml-fft": "1.3.5",
"ml-stat": "^1.3.3"
"ml-fft": "1.3.5"
}
}

0 comments on commit 4d25016

Please sign in to comment.