Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1266 commits
Select commit Hold shift + click to select a range
a4dd4c9
Expand application interface declaration
parzival418 May 6, 2022
88878ca
Add console log for handshake
parzival418 May 6, 2022
04929b3
Add axios file for authenticated axios instance
parzival418 May 6, 2022
b0c4e0f
Add spell file with getSpell helper function
parzival418 May 6, 2022
4b5f74a
Flesh out spell runner class
parzival418 May 6, 2022
4c00d3d
Set client after connected event is received
parzival418 May 6, 2022
3ab3ac6
Emit a connected event at the end of connection operations
parzival418 May 6, 2022
6c61261
Expose done flag from auth provider
parzival418 May 6, 2022
700f71e
use feathers client to get spell runner
parzival418 May 6, 2022
32178f1
add inputs to inRange component
HaruHunab1320 May 6, 2022
286a6be
add info to the inRange component
HaruHunab1320 May 6, 2022
581c3e0
define inrange component with constructor
HaruHunab1320 May 6, 2022
6883939
open the builder and and start num socket
HaruHunab1320 May 6, 2022
7fa2f94
add endNumSocket to inrange component
HaruHunab1320 May 6, 2022
0b47e49
add dataInput to inRange component
HaruHunab1320 May 6, 2022
5807606
add testInput to inRange component
HaruHunab1320 May 6, 2022
75bd929
add isTrue output to inRange component
HaruHunab1320 May 6, 2022
45e7870
add isFalse output to inRange
HaruHunab1320 May 6, 2022
7f0bb4f
attach inputs and outputs to node in inRange component
HaruHunab1320 May 6, 2022
8c6047e
add worker and startRange const in inRange component
HaruHunab1320 May 6, 2022
be5dc06
add endRange const to worker in inRange component
HaruHunab1320 May 6, 2022
2bc113c
add numberToTest const to inRange worker
HaruHunab1320 May 6, 2022
b086dff
add logic to test the number existing between range on inRange component
HaruHunab1320 May 6, 2022
a9d474c
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
HaruHunab1320 May 6, 2022
59b1451
Add get spell runner method
parzival418 May 6, 2022
8077ef8
Add load function for loading a spell into the spellManager
parzival418 May 6, 2022
4a963d9
Pass socket into spell runner
parzival418 May 6, 2022
be796e2
load spell into spell manager in spenn runner service get
parzival418 May 6, 2022
475d1ee
Add stubbed thoth interface to feathers server
parzival418 May 6, 2022
761d944
Build thoth interface and pass to spellManager
parzival418 May 6, 2022
a800467
Remove console logs
parzival418 May 6, 2022
1fbd495
Use spell runner create in playtest window call
parzival418 May 9, 2022
9d6e743
Add empty socket plugin
parzival418 May 9, 2022
34184b8
Use empty socket plugin in engine
parzival418 May 9, 2022
576045e
Add run function to spell manager
parzival418 May 9, 2022
51aafdb
Load spell into runner on manager load
parzival418 May 9, 2022
27d5f46
Fix return in stubbed process code of thoth interface
parzival418 May 9, 2022
3bb9855
Populate create function in feathers service
parzival418 May 9, 2022
f98bca3
Fill out process code in interface
parzival418 May 10, 2022
0ab9e29
Add vm2 to dependencies
parzival418 May 10, 2022
8ca426b
Update yarn lock
parzival418 May 10, 2022
08e2831
Add completion, state and run spell to thoth interface
parzival418 May 10, 2022
3702dd6
Add run spell to spell api
parzival418 May 10, 2022
0ae4814
Add completion service to runner
parzival418 May 10, 2022
686ba84
Build thoth interface with empty state
parzival418 May 10, 2022
9d81ea4
Emit work to socket in socket plugin on server
parzival418 May 10, 2022
d862714
Pass server option in to socket plugin in engine
parzival418 May 10, 2022
7a3ff5f
Handle if we are a client iun the worker overwrite
parzival418 May 10, 2022
6a288f1
Use socket plugin in editor
parzival418 May 10, 2022
f23bcc7
Register socket plugin in engine before task plugin
parzival418 May 10, 2022
ee8d299
Update runner notes
parzival418 May 10, 2022
b895ba7
Pass feathers client into editor provider
parzival418 May 10, 2022
1137bb4
Add handling of client data and sending of server work in socket plugin
parzival418 May 10, 2022
d4a6fea
Initialize spell runner with socket in engine
parzival418 May 10, 2022
a07463c
Delete console log
parzival418 May 10, 2022
bd5ff70
Disable module and task plugin
parzival418 May 11, 2022
7635565
Add socket override plugin
parzival418 May 11, 2022
aac3f70
Add context to worker abstract
parzival418 May 11, 2022
a1c87cd
Add socket override plugin
parzival418 May 11, 2022
e0c8e27
Handle client and server in socket plugin
parzival418 May 11, 2022
52554d4
Remove console log
parzival418 May 11, 2022
f9ce6ea
Formatting
parzival418 May 11, 2022
db9e99e
Update yarn.lock
May 11, 2022
942803e
Add dotenv
parzival418 May 11, 2022
c79be1c
Update yarn lock
parzival418 May 11, 2022
a8d90da
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
parzival418 May 11, 2022
7a04151
Update npm to yarn references in README.md
May 11, 2022
078fb31
Add env example
parzival418 May 11, 2022
bd3a440
Uodate config to use env variables
parzival418 May 11, 2022
77b8cb0
add .env to gitignore
parzival418 May 11, 2022
4ae5233
Update runner config
parzival418 May 11, 2022
a1db722
Import env to config
parzival418 May 11, 2022
19163d3
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
parzival418 May 11, 2022
8fd5395
Add start:runner command
May 11, 2022
33b8ebf
Simplify runner scripts
May 11, 2022
7160248
Exclude jest.config.js and set setLibCheck in runner tsconfig.json
May 11, 2022
2b71024
Disable unused authentication import in runner app.ts
May 11, 2022
8024a16
Disable unused imports in runner in sockets.ts
May 11, 2022
4307d65
Disable unused imports in spell-runner.hooks.ts
May 11, 2022
0d26922
Regenerate the yarn.lock file eh
May 11, 2022
e422e99
Revert "Regenerate the yarn.lock file eh"
parzival418 May 11, 2022
4c745cc
Revert "Regenerate the yarn.lock file eh"
May 11, 2022
ba2506a
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
parzival418 May 11, 2022
1ec7a4c
Add rimraf to devDependencies
May 11, 2022
fb9cd62
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
May 11, 2022
a5630ff
Add nukefromorbit script to workspace
May 11, 2022
61cf86f
Update nukefrom orbit script to target root node_modules as well
May 11, 2022
f938a38
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
HaruHunab1320 May 12, 2022
d2cd86c
Clear typo in runner-notes.md
May 16, 2022
9fe37ad
Add initial boilerplate guard pattern to update method in spell-runne…
May 16, 2022
efb6a5e
Add runner types and ot-json0 module declaration
May 17, 2022
00cc2c1
Add runner typeRoots
May 17, 2022
ddd8a28
Add overload option to spellManager load method
May 17, 2022
486addd
Add intial logic to update method of spell runner class
May 17, 2022
3690974
Add spell runner service update during onSaveDiff event block
May 17, 2022
7721033
Expand guard pattern for client spell runner service use effect in in…
May 17, 2022
2e1953e
Correct name param for spell runner update, and include client in ini…
May 17, 2022
3edfd66
Wrap spell-runner update logic in featherFlag
May 19, 2022
a66d86a
Safely destructure client FeathersContext in EditorProvider.tsx
May 19, 2022
c7810fa
Consider feathersFlag in feathers client useEffect in spell workspace…
May 19, 2022
9bcd959
Wrap spell runner creation in feathersFlag in PlaytestWindow.tsx
May 19, 2022
9e6304c
Correct typo in SpellRunner.ts
May 25, 2022
3f6663c
Add jest to devDeps
May 25, 2022
5631e0b
Add ts-jest to devDeps
May 25, 2022
2e3fc19
add @types/jest to devDeps
May 25, 2022
68e69bb
Add test dir exclusion in tsconfig
May 26, 2022
ca990d7
Add initial spell runner test file and mock instantiation.
May 26, 2022
2dd804b
Delete colocated test stub for SpellManager
May 26, 2022
add33a8
Exclude data in tsconfig
May 26, 2022
a8746f8
Add plugin-transform-runtime to devDeps
May 26, 2022
b0fb2ad
Update babelrc to use separate dev and test envs
May 26, 2022
f9d42ba
Disable common Editor export from types with comment
May 26, 2022
cdb380c
Udapte ThothEditor type import for taskPlugin
May 26, 2022
94bb1ca
Simplify jest config to target a test directory, defaulting to node a…
May 26, 2022
03f1eea
Update ThothEditor import for thoth-component.ts
May 26, 2022
b487d41
Update ThothEditor import for socketManager.ts
May 26, 2022
4145ff8
Add imageGeneratorSpell to data
May 26, 2022
2087c6d
Add base assertion for Image Cache Spell test
May 26, 2022
78144b4
Add thothInterfaceStub to data dir for reusability
May 27, 2022
b267fb5
Update type casting for imageGeneratorSpell.ts
May 27, 2022
3cfd703
Update SpellRunner.test.ts to use thothInterfaceStub.ts
May 27, 2022
5e55d10
Add vm2 to core devDeps
May 27, 2022
eed975d
Add full code component to thothInterfaceStub.ts
May 27, 2022
e44f928
Update Image Cache Test API Stub and Assertion
May 27, 2022
2394224
Update ThothEditor import in EditorProvider.tsx
May 27, 2022
7e7a62e
Correct development key in babelrc for core package
May 27, 2022
8a31e7b
Remove node env log from Spellrunner.test.ts
May 27, 2022
b778ce5
Remove dev logs from thothInterfaceStub
May 27, 2022
17c8083
Make Image Generator Spell test block more descriptive in SpellRunner…
May 27, 2022
f8405b1
Add generatorSpell to dat directory
May 27, 2022
4590475
Add initial Generator Spell test to SpellRunner.test.ts
May 27, 2022
cd3139e
Add mock wrapper to Generator Test
May 27, 2022
d1913d0
Add argument assertion to generator test in SpellRunner.test.ts
May 27, 2022
99581af
Add imageCache mock wrapper to test in Spellrunner.test.ts
May 27, 2022
38a8e32
Add argument assertion to imageCacheMock in SpellRunner.test.ts
May 27, 2022
2d963b0
Add core spell to data dir
May 27, 2022
564f605
Add code spell test with input and output assertions to SpellRunner.t…
May 27, 2022
ed42630
Add generatorSwitchSpell to data dir
May 27, 2022
cfc1774
Add generator-switch test to SpellRunner.test.ts and use more meaning…
May 27, 2022
ded479c
Add switch check that is currently failing for generatorSwitch spell …
May 27, 2022
c8a1ca0
Add read/write state spell to data dir
May 27, 2022
2ef5f93
Add test for Read/Write State Component Spell to SpellRunner.test.ts
May 28, 2022
1a387d2
Add feathers flag to initEditor in core/editor.ts
Jun 1, 2022
928ae2d
Pass feathers boolean to EditorProvider.tsx
Jun 1, 2022
b5dca53
deprecate old ml components
nickwalton Jun 1, 2022
e9841e4
get rid of some errors that were happening
nickwalton Jun 2, 2022
b8487f8
add some model description info
nickwalton Jun 2, 2022
6ffaa95
add model info in generator
nickwalton Jun 2, 2022
6fba192
hide non working starters for now
nickwalton Jun 2, 2022
34f7113
Pair feathers client instances with feature flag in Editor.ts and def…
Jun 2, 2022
9425871
Correct typo in SpellRunner.ts comment
Jun 2, 2022
50d395e
add inRange component to components.ts
HaruHunab1320 Jun 6, 2022
2cf96e2
update inRange component
HaruHunab1320 Jun 6, 2022
f69a055
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
HaruHunab1320 Jun 6, 2022
13b0ecc
remove optional from socket name in inRange component
HaruHunab1320 Jun 6, 2022
601b910
update input property names
HaruHunab1320 Jun 6, 2022
e1f7efc
swap true and false in inRange component
HaruHunab1320 Jun 6, 2022
d4b9d02
add autosave block in updateData in inspector window
HaruHunab1320 Jun 7, 2022
69464ac
move the autosave block in statemanager userEffect inside the debounc…
HaruHunab1320 Jun 7, 2022
646b03b
change save spell diff event constructor to be unique from the other …
HaruHunab1320 Jun 7, 2022
2b304f5
move setTyping before setCode in statemanager window
HaruHunab1320 Jun 7, 2022
11bfd10
cast save response to a const
HaruHunab1320 Jun 7, 2022
f9ae9f7
catch error during saving
HaruHunab1320 Jun 7, 2022
440e88e
add success toast to save spell and save spell diff functions
HaruHunab1320 Jun 7, 2022
bef7f5d
fix subspell issue
nickwalton Jun 7, 2022
8bf7b5d
fix subspell issue
nickwalton Jun 7, 2022
94256f9
add note about yarn link in readme
HaruHunab1320 Jun 7, 2022
569943c
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
HaruHunab1320 Jun 7, 2022
406190e
Update README.md
Jun 7, 2022
0b3bd10
fix issue with triggerless components and backpropagation
nickwalton Jun 7, 2022
ca9562c
Add parent spell to core data
Jun 7, 2022
5248e5e
Add subSpell to core data
Jun 7, 2022
2c32fe4
Add initial subspell test to core
Jun 7, 2022
f1bf848
Add client stop script
Jun 7, 2022
e3873a0
fix newline issue in generator
HaruHunab1320 Jun 8, 2022
a49c742
import debounce to inspector window
HaruHunab1320 Jun 8, 2022
fa1cffa
debounce saveinspector in inspector window
HaruHunab1320 Jun 8, 2022
6b84e11
remove space in composed in generator
HaruHunab1320 Jun 8, 2022
ed13669
Update type casts for parentSpell and subSpell
Jun 8, 2022
802a8b0
Add initial output expectation for subspell test
Jun 8, 2022
5027cc7
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
Jun 8, 2022
4f1d13b
Update stop sequence expectations in spell tests
Jun 8, 2022
17a10c3
Update generator completion result test expectation
Jun 8, 2022
fcdebd0
Add parentSpell and subSpell to data in original .thoth format
Jun 8, 2022
461025e
Add missing thoth file formats for spells in data dir
Jun 8, 2022
3aae582
Add runSpell Mock to subSpell test
Jun 8, 2022
eab9966
Add runSpell assertion to subSpell test
Jun 8, 2022
acf3cf3
Add boolean gate spell data and thoth file
Jun 8, 2022
c797619
import redux state selector stuff to event handler
HaruHunab1320 Jun 8, 2022
0c0411f
grab the preferences in event handler
HaruHunab1320 Jun 8, 2022
ccce19c
supress save messagees in save diff handler
HaruHunab1320 Jun 8, 2022
1970062
removed auto save block stopping state saving
HaruHunab1320 Jun 8, 2022
120959d
Merge branch '0.0.68' of github.com:latitudegames/thoth into 0.0.68
HaruHunab1320 Jun 8, 2022
8c05b16
change the thoth core package
HaruHunab1320 Jun 8, 2022
ee208b2
change thoth-core version
HaruHunab1320 Jun 9, 2022
2aaea85
Add two cases for Boolean Gate Spell
Jun 9, 2022
65e73dc
update client to use canary build
HaruHunab1320 Jun 9, 2022
92a9814
commit yarn lock
HaruHunab1320 Jun 9, 2022
fa0b34c
change package to canary
HaruHunab1320 Jun 9, 2022
c328874
move npmrc to client folder
HaruHunab1320 Jun 9, 2022
3d17f78
change thoth core version
HaruHunab1320 Jun 9, 2022
c690828
fix package paths in netlify.toml
HaruHunab1320 Jun 9, 2022
bad8d82
fix canary plugins
HaruHunab1320 Jun 9, 2022
799f5bd
add engines to package
HaruHunab1320 Jun 9, 2022
b8d4448
commit yarn lock
HaruHunab1320 Jun 9, 2022
7207d77
update package to latest canary
HaruHunab1320 Jun 9, 2022
dad69c6
remove ^ from infront of canary
HaruHunab1320 Jun 9, 2022
bb65ffa
Add joinListSpell in both formats to the data directory
Jun 9, 2022
cdd0eba
Add basic joinListSpell assertion
Jun 9, 2022
e34d5f2
Add stringProcessorSpell in both formats to the data directory
Jun 9, 2022
50a20f0
Add basic stringProcessorSpell assertion
Jun 9, 2022
73b0c18
Add inputOutputSpell in both formats to the data directory
Jun 9, 2022
1cc2eb7
Add basic inputOutputSpell assertion
Jun 9, 2022
d605e96
Add stateReadOutputSpell in both formats to the data directory
Jun 9, 2022
64f7929
Add basic stateReadOutputSpell assertion
Jun 9, 2022
666efcf
Add forEachSpell in both formats to the data directory
Jun 9, 2022
27540e4
commit yarn lock
HaruHunab1320 Jun 9, 2022
6a9d89a
Update core babelrc with a production env entry
Jun 10, 2022
9f76083
Merge branch 'main' into 0.0.68
Jun 10, 2022
87685b0
Merge branch 'staging' into 0.0.68
Jun 10, 2022
07946ed
Deprecate forEach component
Jun 10, 2022
852bf62
Remove client engines
Jun 10, 2022
027384e
Remove engines entry from runner package
Jun 10, 2022
5d129f4
Increment ts-node-dev to 2.0.0
Jun 10, 2022
7c2fa03
Disable conditional canary in client netlify toml
Jun 10, 2022
bc46693
Bump client typescript to 4.7.2
Jun 10, 2022
a6e73b6
Revert "Bump client typescript to 4.7.2"
Jun 10, 2022
6ffcbd7
Reset client thoth core target to 0.0.68
Jun 10, 2022
25c85f3
Merge pull request #184 from latitudegames/0.0.68
Jun 10, 2022
3409b86
Update yarn.lock
Jun 10, 2022
9107ddd
Remove typescript dependencies from runner package
Jun 10, 2022
4c82868
Revert "Remove typescript dependencies from runner package"
Jun 10, 2022
5b4946c
Bump thoth-core to minor patch 69 and target thoth-core minor patch 6…
Jun 11, 2022
0951508
Comment out empty build directory step in netlify.toml
Jun 11, 2022
6c00702
Target typescript 4.6.2 in thoth client
Jun 11, 2022
3023656
Target common typescript and ts-node versions across packages
Jun 11, 2022
75127a6
Add resolveTypeReferenceDirective workaround to ts-loader options in …
Jun 11, 2022
be08d6f
Bump ts-loader to 9.3.0 in client devDeps and revert resolveTypeRefer…
Jun 11, 2022
8c0e636
Disable socket.io-client dep in thoth client while we debug build issues
Jun 11, 2022
fe8ed3b
Revert "Disable socket.io-client dep in thoth client while we debug b…
Jun 11, 2022
a6140e6
Set yarn version to 1.18.0
Jun 13, 2022
d0e376f
Update yarn target in root package.json
Jun 13, 2022
8f1da8e
Disable github actions
Jun 13, 2022
64067e1
fix statemanager save
HaruHunab1320 Jun 13, 2022
bb43864
block save toast when autosave is off
HaruHunab1320 Jun 14, 2022
bc7537f
remove autosave blocking node additions
HaruHunab1320 Jun 14, 2022
dec324e
convert input generator to tsx
HaruHunab1320 Jun 14, 2022
fa6fd30
strip out troublesome debounce
HaruHunab1320 Jun 14, 2022
ca257bd
Merge branch '0.0.68'
HaruHunab1320 Jun 14, 2022
f007c3d
fix state manager save issue
HaruHunab1320 Jun 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
108 changes: 54 additions & 54 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: thoth-core pull request ci
# name: thoth-core pull request ci

on: [pull_request]
# on: [pull_request]

jobs:
check-and-set-labels:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Fail thoth-core-draft
if: contains(github.event.pull_request.labels.*.name, 'thoth-core-draft')
run: exit 1
# jobs:
# check-and-set-labels:
# runs-on: ubuntu-latest
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: Fail thoth-core-draft
# if: contains(github.event.pull_request.labels.*.name, 'thoth-core-draft')
# run: exit 1

- uses: actions/checkout@v2
with:
fetch-depth: 0
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0

- name: Check for git variance in the /core directory
run: git diff --quiet origin/main origin/${{ github.head_ref }} -- core
id: core_diff
shell: bash {0}
continue-on-error: true
# - name: Check for git variance in the /core directory
# run: git diff --quiet origin/main origin/${{ github.head_ref }} -- packages/core
# id: core_diff
# shell: bash {0}
# continue-on-error: true

- name: Check for an existing unique thoth-core label
if: steps.core_diff.outcome != 'success'
uses: docker://agilepathway/pull-request-label-checker:latest
id: no_thoth_core_label
with:
none_of: thoth-core
repo_token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
# - name: Check for an existing unique thoth-core label
# if: steps.core_diff.outcome != 'success'
# uses: docker://agilepathway/pull-request-label-checker:latest
# id: no_thoth_core_label
# with:
# none_of: thoth-core
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# continue-on-error: true

- name: Label thoth-core-draft prs in queue for canary deployment
if: steps.core_diff.outcome != 'success' && steps.no_thoth_core_label.outcome != 'success' && !contains(github.event.pull_request.labels.*.name, 'thoth-core')
uses: actions-ecosystem/action-add-labels@v1
with:
labels: thoth-core-draft
continue-on-error: true
# - name: Label thoth-core-draft prs in queue for canary deployment
# if: steps.core_diff.outcome != 'success' && steps.no_thoth_core_label.outcome != 'success' && !contains(github.event.pull_request.labels.*.name, 'thoth-core')
# uses: actions-ecosystem/action-add-labels@v1
# with:
# labels: thoth-core-draft
# continue-on-error: true

- name: Fail thoth-core-draft
if: contains(github.event.pull_request.labels.*.name, 'thoth-core-draft')
run: exit 1
# - name: Fail thoth-core-draft
# if: contains(github.event.pull_request.labels.*.name, 'thoth-core-draft')
# run: exit 1

- name: Label unique thoth-core pr for canary deployment
if: steps.core_diff.outcome != 'success' && steps.no_thoth_core_label.outcome == 'success'
uses: actions-ecosystem/action-add-labels@v1
with:
labels: thoth-core
continue-on-error: true
# - name: Label unique thoth-core pr for canary deployment
# if: steps.core_diff.outcome != 'success' && steps.no_thoth_core_label.outcome == 'success'
# uses: actions-ecosystem/action-add-labels@v1
# with:
# labels: thoth-core
# continue-on-error: true

- name: Setup Node
uses: actions/setup-node@v2
if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
with:
node-version: '16.14.0'
# - name: Setup Node
# uses: actions/setup-node@v2
# if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
# with:
# node-version: '16.14.0'

- name: Install Dependencies
run: yarn install
if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
# - name: Install Dependencies
# run: yarn install
# if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))

- name: Publish next canary release of @latitudegames/thoth-core
run: git checkout yarn.lock && yarn publish:canary
if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
# - name: Publish next canary release of @latitudegames/thoth-core
# run: git checkout yarn.lock && yarn publish:canary
# if: steps.core_diff.outcome != 'success' && (steps.no_thoth_core_label.outcome == 'success' || contains(github.event.pull_request.labels.*.name, 'thoth-core'))
106 changes: 53 additions & 53 deletions .github/workflows/thoth-core-release.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: thoth-core release conditions
on:
pull_request:
types: [closed]
jobs:
merge_job:
# this job will only run if a PR has been merged
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'thoth-core')
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check for thoth-core label and checkout main if present
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.14.0'
- name: git setup
run: |
git config --global user.name 'Thoth CI'
git config --global user.email 'sean+thothci@latitude.io'
- name: set git tag name to enviroment
working-directory: core
run: echo "LATEST_TAG=v$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
- name: add git tag and push
run: |
git tag ${{ env.LATEST_TAG }}
git push --tags
- name: Install Dependencies
run: yarn install
- name: Prepare and Release
working-directory: core
run: yarn release
- name: Publish to GitHub Packages
working-directory: core
run: npm publish
- name: Increment package for future prelease, commit and push
working-directory: core
run: |
cd ../client
yarn add @latitudegames/thoth-core
git add package.json
cd ..
git add yarn.lock
cd core
npm version patch
git add package.json
git commit -m "Bump thoth-core to v$(node -pe "require('./package.json').version") and target latest release in thoth-client"
git push
# name: thoth-core release conditions
# on:
# pull_request:
# types: [closed]
# jobs:
# merge_job:
# # this job will only run if a PR has been merged
# if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'thoth-core')
# runs-on: ubuntu-latest
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - name: Check for thoth-core label and checkout main if present
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Setup Node
# uses: actions/setup-node@v2
# with:
# node-version: '16.14.0'
# - name: git setup
# run: |
# git config --global user.name 'Thoth CI'
# git config --global user.email 'sean+thothci@latitude.io'
# - name: set git tag name to enviroment
# working-directory: packages/core
# run: echo "LATEST_TAG=v$(node -pe "require('./package.json').version")" >> $GITHUB_ENV
# - name: add git tag and push
# run: |
# git tag ${{ env.LATEST_TAG }}
# git push --tags
# - name: Install Dependencies
# run: yarn install
# - name: Prepare and Release
# working-directory: packages/core
# run: yarn release
# - name: Publish to GitHub Packages
# working-directory: packages/core
# run: npm publish
# - name: Increment package for future prelease, commit and push
# working-directory: packages/core
# run: |
# cd ../client
# yarn add @latitudegames/thoth-core
# git add package.json
# cd ..
# git add yarn.lock
# cd core
# npm version patch
# git add package.json
# git commit -m "Bump thoth-core to v$(node -pe "require('./package.json').version") and target latest release in thoth-client"
# git push
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3001",
"url": "http://localhost:3003",
"sourceMap": true,
"webRoot": "${workspaceFolder}/client",
"trace": true,
Expand Down
Loading