Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First Main Release Merge from Develop #65

Merged
merged 261 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
261 commits
Select commit Hold shift + click to select a range
b6fc480
Update README.md
afonsobspinto Jul 1, 2022
6acb6ae
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
e4093f0
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
5f2350e
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
600c717
#1 chore: Fix package.json typo
afonsobspinto Jul 1, 2022
612025c
#1 chore: Update node version GitHub actions
afonsobspinto Jul 1, 2022
20ade86
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
59f8fe2
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
181e357
#1 chore: Update GitHub actions
afonsobspinto Jul 1, 2022
5be9f03
#1 chore: Add new GitHub action
afonsobspinto Jul 1, 2022
504a98c
#1 chore: WIP - Add new GitHub action
afonsobspinto Jul 1, 2022
6d8878a
#1 chore: Add new publish action
afonsobspinto Jul 1, 2022
73139c5
#1 chore: Update publish action
afonsobspinto Jul 1, 2022
32c2b42
#1 chore: Bump package version - patch
afonsobspinto Jul 1, 2022
087157a
#2 chore: Add model skeleton
afonsobspinto Jul 1, 2022
ae6411c
#2 chore: Add missing import
afonsobspinto Jul 4, 2022
c50ad4e
#2 chore: Fix typescript compiling
afonsobspinto Jul 4, 2022
3d272f4
#2 chore: Add basic styling
afonsobspinto Jul 4, 2022
367675f
#2 chore: Add custom link example
afonsobspinto Jul 4, 2022
f56c5f2
#3 chore: apply linting rules
afonsobspinto Jul 4, 2022
1cdb15b
#3 chore: Fix build issues
afonsobspinto Jul 4, 2022
1aad4bc
#3 chore: Remove deprecated test
afonsobspinto Jul 4, 2022
c56c2f5
Merge pull request #4 from MetaCell/feature/2
ddelpiano Jul 11, 2022
a53328a
#5 migrate dockbar to library, plus some versioning fixes, plus suppo…
ddelpiano Jul 12, 2022
ef0cf99
#5 clean-up
ddelpiano Jul 12, 2022
62e17c2
#5 adding compiled version
ddelpiano Jul 12, 2022
624215c
#5 chore: Fix linting
afonsobspinto Jul 13, 2022
a846b70
#5 cleanup
ddelpiano Jul 14, 2022
09db3fe
Merge branch 'feature/5' of https://github.com/MetaCell/meta-diagram …
ddelpiano Jul 14, 2022
08e7d86
Merge pull request #6 from MetaCell/feature/5
afonsobspinto Jul 14, 2022
2b596b6
Update custom widget props
afonsobspinto Jul 18, 2022
a550d1e
Fix example application
afonsobspinto Jul 18, 2022
d67a51b
Update props
afonsobspinto Jul 18, 2022
ed9dc87
Add compiled dist
afonsobspinto Jul 18, 2022
ecd9b3a
Update version
afonsobspinto Jul 19, 2022
3e78863
Expose react-diagrams link widget
afonsobspinto Jul 19, 2022
41ac7ff
Expose react-diagrams link widget
afonsobspinto Jul 19, 2022
e74479a
#10 Add lock files, update from material-ui to mui
vidhya-metacell Jul 20, 2022
58f2cdb
#10 chore: Update package.json
afonsobspinto Jul 20, 2022
6dab502
Merge pull request #11 from MetaCell/feature/10
afonsobspinto Jul 20, 2022
1f04c2f
#10 chore: Fix lint
afonsobspinto Jul 20, 2022
7eac10a
#13 Introduce the main theme to meta diagram
vidhya-metacell Jul 21, 2022
8adc92d
#13 Make theme customisable from the example project
vidhya-metacell Jul 21, 2022
cfd270d
#13 Add canvas background from example application
vidhya-metacell Jul 21, 2022
29e4ff9
#13 Linter fixes
vidhya-metacell Jul 21, 2022
141d322
#14 Merging Canvas and theme props to single object
vidhya-metacell Jul 22, 2022
7b968c7
Merge pull request #15 from MetaCell/feature/13
zsinnema Jul 22, 2022
3197831
#16 Add more variables for sidebar customisation, move styles for no…
vidhya-metacell Jul 22, 2022
06cd2bb
#16 Update canvas styles
vidhya-metacell Jul 22, 2022
113653d
#16 Add Nodes UI and color variants
vidhya-metacell Jul 22, 2022
17c0f0d
#16 Linter updates
vidhya-metacell Jul 22, 2022
6d589be
#16 chore: Update dist folder
afonsobspinto Jul 22, 2022
d7d2eb0
#16 Update build folder
vidhya-metacell Jul 22, 2022
a4be292
Merge branch 'feature/16' of github.com:MetaCell/meta-diagram into fe…
vidhya-metacell Jul 22, 2022
ffbf87b
#16 Variables for node color options
vidhya-metacell Jul 22, 2022
843b552
#16 Sidebar selected state for optionns availble in list
vidhya-metacell Jul 22, 2022
5959de3
#16 Node selection
vidhya-metacell Jul 22, 2022
76cca14
#16 Update color option for node
vidhya-metacell Jul 22, 2022
bfeb598
#16 Build files
vidhya-metacell Jul 22, 2022
d0e2e22
Update dist
afonsobspinto Jul 22, 2022
aece67f
Update dist
afonsobspinto Jul 22, 2022
806236f
#16 Resolve merge conflicts
vidhya-metacell Jul 26, 2022
be962bb
#16 Linter fixes
vidhya-metacell Jul 26, 2022
5fc0394
#16 Make components DRY
vidhya-metacell Jul 27, 2022
2adfc82
#18 adding key to factories, bumped version and recompiled
ddelpiano Jul 28, 2022
d1791e8
#16 Keep the node base styles and a default calue of color in meta theme
vidhya-metacell Jul 29, 2022
edb552b
#16 Add color options for node in example's theme
vidhya-metacell Jul 29, 2022
cb0d701
#16 Remove style options from node widget in example
vidhya-metacell Jul 29, 2022
156c8bc
#16 Linter updates
vidhya-metacell Jul 29, 2022
162f501
#16 Build updates
vidhya-metacell Jul 29, 2022
7f18fb3
#16 Update material version to integrate theme
vidhya-metacell Jul 29, 2022
9545f85
#16 Icon addition from theme to node
vidhya-metacell Jul 30, 2022
b58c1b6
#16 Add icon example to the nodes
vidhya-metacell Jul 30, 2022
8348966
#16 Build files
vidhya-metacell Jul 30, 2022
3c1a922
#18 chore: Redo prop name changes;
afonsobspinto Aug 1, 2022
10cda9d
#18 chore: Remove react-diagrams pass through
afonsobspinto Aug 1, 2022
8704435
#18 chore: Update dist
afonsobspinto Aug 1, 2022
0645ae6
#18 chore: Merge with dev
afonsobspinto Aug 1, 2022
988ca22
#16 chore: Add variant attribute to entities
afonsobspinto Aug 1, 2022
1ab69b1
#16 chore: Fix linting
afonsobspinto Aug 1, 2022
598cdb6
Merge pull request #20 from MetaCell/feature/18
afonsobspinto Aug 1, 2022
0c90c00
Merge branch 'develop' into feature/16
afonsobspinto Aug 1, 2022
a12df2a
#9 chore: Update models
afonsobspinto Aug 1, 2022
3b5eaed
#16 chore: Strictly compare against undefined
afonsobspinto Aug 1, 2022
60ee7bb
Merge pull request #17 from MetaCell/feature/16
zsinnema Aug 1, 2022
a69c86a
#9 chore: Add group movement
afonsobspinto Aug 1, 2022
9e3dbd9
#9 chore: WIP - Update local position on movement
afonsobspinto Aug 1, 2022
2bbde27
#23 UI fix for show properties button
vidhya-metacell Aug 1, 2022
56e745b
#9 chore: Add diamondNodeWidget example
afonsobspinto Aug 1, 2022
83d09a7
#9 chore: Add z-index order
afonsobspinto Aug 1, 2022
ae3d7ce
Merge pull request #24 from MetaCell/feature/23
zsinnema Aug 1, 2022
fdf2249
#9 chore: Add MetaGraph
afonsobspinto Aug 2, 2022
316cb28
#9 chore: WIP - Add container bounding box calculation
afonsobspinto Aug 2, 2022
3b6c9e9
#9 chore: Add container bounding box calculation
afonsobspinto Aug 2, 2022
5b84a3c
#9 chore: WIP - Fix bounding box updates
afonsobspinto Aug 2, 2022
34d66a9
Revert "#9 chore: WIP - Fix bounding box updates"
afonsobspinto Aug 2, 2022
6b19468
#9 chore: Refactor logic to metaGraph
afonsobspinto Aug 2, 2022
a8412c0
#9 chore: Add todos
afonsobspinto Aug 2, 2022
23be234
#9 chore: Add todos
afonsobspinto Aug 5, 2022
564aed1
#9 chore: Update todos
afonsobspinto Aug 5, 2022
59c9068
#26 Theme styles for expanded node
vidhya-metacell Aug 9, 2022
464a04a
#26 Example application expanded node example integration
vidhya-metacell Aug 9, 2022
78d3309
#26 Show expanded node by default for testing
vidhya-metacell Aug 9, 2022
858a7eb
#26 Remove hardcode colors from the component
vidhya-metacell Aug 9, 2022
49b7db4
#28 moving to yalc for development process
ddelpiano Aug 10, 2022
07396d0
Merge pull request #29 from MetaCell/feature/28
zsinnema Aug 11, 2022
5b3e07c
#30 enhancing api for meta elements
ddelpiano Aug 11, 2022
5ebe499
Merge branch 'develop' of https://github.com/MetaCell/meta-diagram in…
ddelpiano Aug 11, 2022
8cf30a4
#31 cleanup
ddelpiano Aug 11, 2022
5202de9
Merge pull request #27 from MetaCell/feature/26
zsinnema Aug 12, 2022
76eb896
#30 extending model for ports
ddelpiano Aug 24, 2022
f9d01b3
#30 still working on meta port and fixing issues encountered
ddelpiano Aug 24, 2022
16c634a
#30 trying to fix render of empty ports for port widget
ddelpiano Aug 25, 2022
b6f9b74
Merge branch 'develop' of https://github.com/MetaCell/meta-diagram in…
ddelpiano Aug 31, 2022
9a4b2b3
#30 fixing linter issues
ddelpiano Aug 31, 2022
40b3595
#30 fixing linter issues 2
ddelpiano Aug 31, 2022
8677fd2
Merge pull request #32 from MetaCell/feature/30
zsinnema Aug 31, 2022
7b312b5
Merge branch 'develop' of https://github.com/MetaCell/meta-diagram in…
ddelpiano Sep 2, 2022
d87a883
#9 changes required for parent child relationships in the diagram
ddelpiano Oct 17, 2022
155ae5b
#9 some more actions to be handled with the library callback
ddelpiano Oct 25, 2022
0afe203
#9 moved graph to application logic
ddelpiano Oct 25, 2022
3a6d7de
#46 : modified sidebar to fit new mockup
emekauja Oct 26, 2022
5663301
added sub sidebar icons
emekauja Oct 27, 2022
328dd68
#46 added sub sidebar
emekauja Oct 27, 2022
618d7ac
#9 latest changes to metaNodeModel api
ddelpiano Oct 28, 2022
a534290
#9 clean up
ddelpiano Oct 28, 2022
e67c65e
#46 remove unused icons
emekauja Nov 2, 2022
45c2850
#46 modified sub-sidebar to not depend on apps
emekauja Nov 2, 2022
79b8697
#46 added sub-bar item tooltip
emekauja Nov 2, 2022
391822d
Merge branch 'feature/9' of https://github.com/metacell/meta-diagram …
ddelpiano Nov 3, 2022
3afdb19
#9 adding installation script for the example application, use yalc f…
ddelpiano Nov 6, 2022
27047d8
#9 fixing linter errors
ddelpiano Nov 6, 2022
3591868
Merge pull request #33 from MetaCell/feature/9
ddelpiano Nov 6, 2022
7a3ed4b
#46 add new sidebar props
emekauja Nov 7, 2022
d2dbd37
Merge branch 'develop' into feature/9_version2
emekauja Nov 7, 2022
856087f
Merge pull request #36 from MetaCell/feature/9_version2
ddelpiano Nov 7, 2022
c67789f
aligining callbacks behaviour for pre and post
ddelpiano Dec 11, 2022
0026a9c
Merge pull request #38 from MetaCell/psnl_feature/40
zsinnema Jan 4, 2023
21208e8
#39 extending and making serialisation generic
ddelpiano Jan 24, 2023
89955ae
Merge pull request #40 from MetaCell/feature/39
zsinnema Jan 25, 2023
d6afe51
PSYNEU-3: feature: implement nested sidebar nodes
emekauja Mar 20, 2023
9369429
PSYNEU-30 chore: Remove custom duplicated models
afonsobspinto Mar 22, 2023
63ca69b
PSYNEU-30 chore: Apply linting
afonsobspinto Mar 23, 2023
69d0c07
Merge pull request #43 from MetaCell/feature/PSYNEU-26
ddelpiano Mar 27, 2023
2db7519
PSYNEU-3: fix: lint errors (--fix)
emekauja Mar 27, 2023
79c03c2
PSYNEU-31:added constant n modified list item css
emekauja Mar 28, 2023
90ca2f2
PSYNEU-31: feature: list item drag functionality
emekauja Mar 28, 2023
5ca1ddd
PSYNEU-31: added draggable canvas widget
emekauja Mar 28, 2023
0060b4f
PSYNEU-31: added draggable canvas to app
emekauja Mar 28, 2023
57f744a
PSYNEU-31: fix: install deps
emekauja Mar 28, 2023
9dda7f6
Merge branch 'develop' of https://github.com/metacell/meta-diagram in…
emekauja Mar 28, 2023
4c44cb7
Merge pull request #42 from MetaCell/feature/PSYNEU-3
ddelpiano Apr 5, 2023
ecfea9d
PSYNEU-31 fix: Update MetaDiagram props
afonsobspinto Apr 6, 2023
79fc277
PSYNEU-31 fix: Add explicit fragment key to sidebar nodes
afonsobspinto Apr 6, 2023
8189e2a
PSYNEU-31 feat: Add sidebar to example app
afonsobspinto Apr 6, 2023
cb3f246
PSYNEU-31 feat: Update sidebar of example app
afonsobspinto Apr 6, 2023
163ba16
PSYNEU-31 chore: Remove unused expressions from example App
afonsobspinto Apr 6, 2023
a3de3da
Merge branch 'develop' into feature/PSYNEU-31
afonsobspinto Apr 6, 2023
a88f9ed
Merge pull request #44 from MetaCell/feature/PSYNEU-31
ddelpiano Apr 12, 2023
e9cbe0f
PSYNEU-35: added custom default state
emekauja Apr 19, 2023
76ba35e
PSYNEU-35: added drag (panning) actions
emekauja Apr 19, 2023
5fdc115
PSYNEU-35: feature: selection functionality
emekauja Apr 19, 2023
0665cbd
refactor: :art:
emekauja Apr 19, 2023
6d1c4a1
PSYNEU-34 feat: Add forwardRef to MetaDiagram component
afonsobspinto Apr 25, 2023
4608b2e
chore: Apply linting
afonsobspinto Apr 25, 2023
13bad91
feat: Add onMount prop
afonsobspinto Apr 26, 2023
3125bfa
feat: Expose add node api
afonsobspinto May 5, 2023
b1021d1
feat: Memoize engine creation
afonsobspinto May 5, 2023
8cfc8a8
Merge pull request #47 from MetaCell/feature/PSYNEU-45
ddelpiano May 13, 2023
d9a74bf
Merge pull request #46 from MetaCell/feature/PSYNEU-34
ddelpiano May 13, 2023
eed923e
Merge branch 'develop' of https://github.com/metacell/meta-diagram in…
emekauja May 15, 2023
8094672
chore: change the cursors on sidebar select
emekauja May 19, 2023
4d6d8e0
#PSYNEU-51 view DependenciesDialog and CondaSelectionDialog
May 24, 2023
c31f198
Revert "#PSYNEU-51 view DependenciesDialog and CondaSelectionDialog"
ddelpiano May 25, 2023
8a4375f
PSYNEU-59 fix: Remove incorrect setter of local position
afonsobspinto May 26, 2023
64d80dc
PSYNEU-59 chore: Remove unused method
afonsobspinto May 26, 2023
ec040ca
PSYNEU-59 feat: Add additional callback types
afonsobspinto May 31, 2023
8564ed9
PSYNEU-59 chore: Apply linting rules
afonsobspinto May 31, 2023
15c83ce
fix: requested changes from review
emekauja Jun 5, 2023
61aa104
Merge branch 'feature/PSYNEU-35' of https://github.com/metacell/meta-…
emekauja Jun 5, 2023
3a51c2d
Merge branch 'feature/PSYNEU-44' into feature/PSYNEU-50
afonsobspinto Jun 5, 2023
e96338d
PSYNEU-50 feat: Add create link state
afonsobspinto Jun 5, 2023
88910bf
Merge branch 'feature/PSYNEU-35' into feature/PSYNEU-50
afonsobspinto Jun 5, 2023
5e661a6
Merge pull request #45 from MetaCell/feature/PSYNEU-35
afonsobspinto Jun 5, 2023
243e89d
PSYNEU-50 feat: WIP - Connect sidebar with react diagrams state
afonsobspinto Jun 5, 2023
7a32039
PSYNEU-36 fix: Export default sidebar node types
afonsobspinto Jun 5, 2023
9f9e6d1
PSYNEU-50 chore: Split sidebar components into multiple files
afonsobspinto Jun 5, 2023
21fbb11
PSYNEU-50 feat: Add state pattern to sidebar
afonsobspinto Jun 5, 2023
b054c5c
PSYNEU-50 feat: Connect state with events logic
afonsobspinto Jun 5, 2023
fbadaac
Merge pull request #49 from MetaCell/feature/PSYNEU-59
ddelpiano Jun 12, 2023
488034b
Fixing missing file
ddelpiano Jun 13, 2023
8dc7024
psyneu-65: key binding delete fix
ddelpiano Jun 15, 2023
66a8d81
psyneu-65: fixing linting
ddelpiano Jun 15, 2023
1362381
Merge pull request #51 from MetaCell/feature/psyneu-65
ddelpiano Jun 15, 2023
98bdeda
Merge branch 'develop' into feature/PSYNEU-50
emekauja Jun 20, 2023
ee271c8
fix: scrollable sub sidebar
emekauja Jun 21, 2023
d09ed50
Revert "fix: scrollable sub sidebar"
emekauja Jun 21, 2023
909a62b
fix: make create link dynamic
emekauja Jun 25, 2023
b933c27
added remover invalid link
emekauja Jun 25, 2023
aed3845
feature: scrollable sub sidebar
emekauja Jun 25, 2023
cb40b73
fix: state map config undefined error
emekauja Jun 26, 2023
60f61cc
changes for model reload
ddelpiano Jun 28, 2023
4412051
fixing linter errors
ddelpiano Jun 28, 2023
51922b7
fixing linter error
ddelpiano Jun 28, 2023
075e81e
fixed linter errors
ddelpiano Jun 28, 2023
d913c65
Merge pull request #54 from MetaCell/feature/fix_model_reload
ddelpiano Jun 28, 2023
f101b17
Merge branch 'feature/PSYNEU-50_2' of https://github.com/metacell/met…
ddelpiano Jun 28, 2023
1c51dd7
Merge branch 'develop' of https://github.com/metacell/meta-diagram in…
ddelpiano Jun 28, 2023
da174ab
Merge branch 'feature/PSYNEU-50_2' of https://github.com/metacell/met…
ddelpiano Jun 28, 2023
460a271
Merge pull request #52 from MetaCell/feature/PSYNEU-50_2
ddelpiano Jun 28, 2023
47da902
Merge pull request #53 from MetaCell/feature/PSYNEU-72_2
ddelpiano Jun 28, 2023
6cb4086
fix: initial sidebar state selects multiply
emekauja Jul 3, 2023
46c376c
fix:state map methods don't work on invalid link
emekauja Jul 3, 2023
865f5a4
Merge pull request #55 from MetaCell/feature/PSYNEU-86
ddelpiano Jul 5, 2023
5df8537
fix: added class to sub sidebar to use style
emekauja Jul 5, 2023
7b6ea43
fix: revert canva engine type x sub sidebar class
emekauja Jul 12, 2023
e292e60
chore: added custom port model
emekauja Jul 12, 2023
c9ceff4
chore: added condition link factory port
emekauja Jul 12, 2023
106a44f
fix: linting problems
emekauja Jul 17, 2023
ed4ea80
Merge branch 'feature/PSYNEU_72_3' into featue/PSYNEU_91
emekauja Jul 17, 2023
6fae8dc
fix: revert needed effect dependency
emekauja Jul 17, 2023
2884223
Merge pull request #56 from MetaCell/feature/PSYNEU_72_3
ddelpiano Jul 17, 2023
cc29d89
Merge pull request #57 from MetaCell/featue/PSYNEU_91
ddelpiano Jul 17, 2023
eb58bc0
serialisables for ports
ddelpiano Jul 17, 2023
9c89333
Merge pull request #58 from MetaCell/feature/psyneu-56
ddelpiano Jul 17, 2023
a909461
fix: update select logic x remove pop state
emekauja Jul 19, 2023
1b65f48
chore: update create link state methods
emekauja Jul 19, 2023
01da2da
chore: update panning state methods
emekauja Jul 19, 2023
65fedb3
chore: added select state methods
emekauja Jul 19, 2023
d957c9f
added new methods and state logic to DefaultState
emekauja Jul 19, 2023
44587c2
chore: add select state to sidebar state map
emekauja Jul 19, 2023
59aec08
fix: linting error
emekauja Jul 19, 2023
ea0c88e
fix: linting
emekauja Jul 19, 2023
22e98eb
PSYNEU-90 chore: Test new build
afonsobspinto Jul 19, 2023
7d1c421
PSYNEU-90 chore: Temporarily remove prettier from package.json
afonsobspinto Jul 19, 2023
be0e208
PSYNEU-90 chore: Apply default prettier rules
afonsobspinto Jul 19, 2023
82f85af
PSYNEU-90 chore: Fix merge conflicts
afonsobspinto Jul 19, 2023
f337a37
PSYNEU-90 chore: Bring back custom prettier rules
afonsobspinto Jul 19, 2023
99bf989
psyneu-74 changes to serialization required
ddelpiano Jul 24, 2023
739dd65
Merge pull request #61 from MetaCell/feature/psyneu-74_2
ddelpiano Jul 25, 2023
a1f2159
Merge pull request #59 from MetaCell/feature/PSYNEU-90
ddelpiano Jul 25, 2023
bd51b1e
chore: custom sub sidebar scrollbar style
emekauja Jul 29, 2023
ce1c0e4
chore: extend sidebar props and current state
emekauja Aug 1, 2023
9867a22
refactor:change sidebar prop frm combine to single
emekauja Aug 1, 2023
8027398
Merge pull request #62 from MetaCell/feature/psyneu_102
ddelpiano Aug 4, 2023
e2dc34d
Merge pull request #63 from MetaCell/feature/psyneu-107
ddelpiano Aug 4, 2023
d582d47
Fixed nodes/links deletion, extra state to handle links selection, so…
ddelpiano Aug 19, 2023
ddc2de9
fixing linters
ddelpiano Aug 19, 2023
c9ccb98
Merge pull request #64 from MetaCell/feature/psyneu_release
ddelpiano Aug 19, 2023
1ffca5d
chore: Update example
afonsobspinto Nov 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on: [pull_request, workflow_call]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install deps
run: npm i

- name: Lint
run: npm run lint

- name: Test
run: npm run test --ci --coverage --maxWorkers=2

- name: Build
run: npm run build
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- main
jobs:
build:
uses: ./.github/workflows/main.yml
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Check version changes
uses: EndBug/version-check@v1
id: check

- name: Set up Node.js for NPM
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v1
with:
node-version: 14
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
if: steps.check.outputs.changed == 'true'
run: npm install --only=prod

- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading
Loading