Skip to content

Commit

Permalink
Upgrade release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mateogianolio committed May 6, 2024
2 parents 27deae0 + e4ec2c9 commit 8c30ab5
Show file tree
Hide file tree
Showing 353 changed files with 80,336 additions and 187 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- run: |
git config --global user.name 'Mateo Gianolio'
Expand All @@ -35,6 +37,10 @@ jobs:
- name: Build dist/
run: npm run build

- name: Build docs/
run: |
npm run docs
- name: Test
run: npm test

Expand All @@ -45,25 +51,20 @@ jobs:
with:
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov

- name: Build and deploy docs
run: |
npm run docs
./docs/deploy.sh
- name: Publish dist
- name: Publish dist/ and docs/
run: |
git add dist
git commit --amend --no-edit
git push --force origin master
git add dist docs
git commit -m "Publish dist and docs"
git push origin master
- name: Publish package to npm
id: publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Publish git tag
if: steps.publish.outputs.type != 'none'
if: ${{ steps.publish.outputs.type }}
run: |
git tag ${{ steps.publish.outputs.version }}
git push origin ${{ steps.publish.outputs.version }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ coverage
built
benchmarks
docs/code
docs/_build/**/*
!docs/_build/CNAME
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ It exposes a global variable named `v` in the `window` object and can be accesse

#### ES module

Added in version 6.1.0, vectorious exposes an ES module bundle at `dist/index.esm.js` which can be imported using the `import` syntax:
Added in version 6.1.0, vectorious exposes an ES module bundle at `dist/index.mjs` which can be imported using the `import` syntax:

```typescript
import { array } from 'vectorious';
Expand Down
10 changes: 5 additions & 5 deletions dist/index.browser.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.browser.js.map

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions dist/index.esm.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/index.esm.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.js.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions dist/index.mjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/index.mjs.map

Large diffs are not rendered by default.

Binary file added docs/_build/doctrees/api/classes/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/classes/ndarray.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/classes/nditer.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/abs.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/acos.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/acosh.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/add.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/angle.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/array.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/asin.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/asinh.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/atan.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/atanh.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/binOp.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/ceil.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/copy.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/cos.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/cross.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/det.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/dot.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/eig.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/exp.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/expm1.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/eye.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/fill.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/floor.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/gauss.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/get.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/inv.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/log.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/log10.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/log1p.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/log2.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/lu.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/magic.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/map.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/max.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/mean.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/min.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/norm.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/ones.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/pow.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/prod.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/push.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/range.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/rank.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/round.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/scale.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/set.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/sign.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/sin.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/sinh.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/slice.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/solve.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/sqrt.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/sum.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/swap.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/tan.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/tanh.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/trace.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/trunc.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/functions/zeros.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/api/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/dev/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file not shown.
Binary file added docs/_build/doctrees/user-guide/basics.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/user-guide/index.doctree
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a629b3c6240133e4b4459cf676ea7727
tags: 645f666f9bcd5a90fca523b33c5a78b7
12 changes: 12 additions & 0 deletions docs/_build/html/_sources/api/classes/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. classes
Classes
======================================

.. toctree::
:maxdepth: 2
:hidden:

ndarray
nditer
ndmultiiter
7 changes: 7 additions & 0 deletions docs/_build/html/_sources/api/classes/ndarray.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. ndarray
NDArray
======================================

.. autoclass:: NDArray
:members:
7 changes: 7 additions & 0 deletions docs/_build/html/_sources/api/classes/nditer.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. nditer
NDIter
======================================

.. autoclass:: NDIter
:members:
8 changes: 8 additions & 0 deletions docs/_build/html/_sources/api/classes/ndmultiiter.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. ndmultiiter
NDMultiIter
======================================

.. autoclass:: NDMultiIter
:members:
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/abs.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. abs
abs
======================================

.. autofunction:: vectorious.abs
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/acos.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. acos
acos
======================================

.. autofunction:: vectorious.acos
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/acosh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. acosh
acosh
======================================

.. autofunction:: vectorious.acosh
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/add.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. add
add
======================================

.. autofunction:: vectorious.add
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/angle.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. angle
angle
======================================

.. autofunction:: vectorious.angle
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/array.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. array
array
======================================

.. autofunction:: vectorious.array
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/asin.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. asin
asin
======================================

.. autofunction:: vectorious.asin
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/asinh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. asinh
asinh
======================================

.. autofunction:: vectorious.asinh
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/atan.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. atan
atan
======================================

.. autofunction:: vectorious.atan
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/atanh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. atanh
atanh
======================================

.. autofunction:: vectorious.atanh
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/augment.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. augment
augment
======================================

.. autofunction:: vectorious.augment
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/binOp.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. binOp
binOp
======================================

.. autofunction:: vectorious.binOp
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/cbrt.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. cbrt
cbrt
======================================

.. autofunction:: vectorious.cbrt
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/ceil.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. ceil
ceil
======================================

.. autofunction:: vectorious.ceil
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/check.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. check
check
======================================

.. autofunction:: vectorious.check
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/combine.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. combine
combine
======================================

.. autofunction:: vectorious.combine
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/copy.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. copy
copy
======================================

.. autofunction:: vectorious.copy
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/cos.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. cos
cos
======================================

.. autofunction:: vectorious.cos
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/cosh.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. cosh
cosh
======================================

.. autofunction:: vectorious.cosh
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/cross.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. cross
cross
======================================

.. autofunction:: vectorious.cross
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/det.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. det
det
======================================

.. autofunction:: vectorious.det
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/diagonal.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. diagonal
diagonal
======================================

.. autofunction:: vectorious.diagonal
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/dot.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. dot
dot
======================================

.. autofunction:: vectorious.dot
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/eig.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. eig
eig
======================================

.. autofunction:: vectorious.eig
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/equals.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. equals
equals
======================================

.. autofunction:: vectorious.equals
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. equidimensional
equidimensional
======================================

.. autofunction:: vectorious.equidimensional
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/equilateral.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. equilateral
equilateral
======================================

.. autofunction:: vectorious.equilateral
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/exp.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. exp
exp
======================================

.. autofunction:: vectorious.exp
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/expm1.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. expm1
expm1
======================================

.. autofunction:: vectorious.expm1
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/eye.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. eye
eye
======================================

.. autofunction:: vectorious.eye
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/fill.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. fill
fill
======================================

.. autofunction:: vectorious.fill
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/floor.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. floor
floor
======================================

.. autofunction:: vectorious.floor
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/forEach.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. forEach
forEach
======================================

.. autofunction:: vectorious.forEach
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/fround.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. fround
fround
======================================

.. autofunction:: vectorious.fround
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/gauss.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. gauss
gauss
======================================

.. autofunction:: vectorious.gauss
6 changes: 6 additions & 0 deletions docs/_build/html/_sources/api/functions/get.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.. get
get
======================================

.. autofunction:: vectorious.get

0 comments on commit 8c30ab5

Please sign in to comment.