Skip to content

Commit

Permalink
Merge pull request #7 from nik-kita/feat/xsate-logic-handling
Browse files Browse the repository at this point in the history
Feat/xsate logic handling
  • Loading branch information
nik-kita authored Mar 3, 2025
2 parents 901dba0 + b70e3d8 commit 2b08d77
Show file tree
Hide file tree
Showing 14 changed files with 1,096 additions and 641 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Deploy

on:
push:
branches: [main, stage]
pull_request:
branches: [main, stage]
push:
branches: [main, stage]
pull_request:
branches: [main, stage]

jobs:
deploy:
name: Deploy
environment: ${{(github.ref_name == 'main' && 'prod') || (github.ref_name == 'stage' && 'stage')}}
runs-on: ubuntu-latest
deploy:
name: Deploy
environment: ${{(github.ref_name == 'main' && 'prod') || (github.ref_name == 'stage' && 'stage')}}
runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- name: Clone repository
uses: actions/checkout@v4
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Install Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x

- name: Load dotenv from github secrets
run: >
echo """${{secrets.DOTENV_CONTENT}}""" > .env
- name: Load dotenv from github secrets
run: >
echo """${{secrets.DOTENV_CONTENT}}""" > .env
- name: Upload to Deno Deploy ${{env.DENO_PROJECT_NAME}}
uses: denoland/deployctl@v1
with:
project: ${{vars.DENO_PROJECT_NAME}}
entrypoint: "main.ts"
root: ""
- name: Upload to Deno Deploy ${{env.DENO_PROJECT_NAME}}
uses: denoland/deployctl@v1
with:
project: ${{vars.DENO_PROJECT_NAME}}
entrypoint: "main.ts"
root: ""
44 changes: 22 additions & 22 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Launch Program",
"type": "node",
"program": "${workspaceFolder}/main.ts",
"cwd": "${workspaceFolder}",
"env": {},
"runtimeExecutable": "/home/nik/.deno/bin/deno",
"runtimeArgs": [
"run",
"--unstable-kv",
"--inspect-wait",
"--allow-all"
],
"attachSimplePort": 9229
}
]
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Launch Program",
"type": "node",
"program": "${workspaceFolder}/main.ts",
"cwd": "${workspaceFolder}",
"env": {},
"runtimeExecutable": "/home/nik/.deno/bin/deno",
"runtimeArgs": [
"run",
"--unstable-kv",
"--inspect-wait",
"--allow-all"
],
"attachSimplePort": 9229
}
]
}
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
{
"deno.enable": true,
"editor.tabSize": 4,
"cSpell.words": [
"GDRIVE"
]
}
Loading

1 comment on commit 2b08d77

@deno-deploy
Copy link
Contributor

@deno-deploy deno-deploy bot commented on 2b08d77 Mar 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

UNCAUGHT_EXCEPTION

Error: Invalid target: "Complete" is not a valid target from the root node. Did you mean ".Complete"?
    at file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/raise-60cebf03.cjs.js:1755:13
    at Array.map (<anonymous>)
    at resolveTarget (file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/raise-60cebf03.cjs.js:1733:18)
    at formatTransition (file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/raise-60cebf03.cjs.js:1651:18)
    at file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/raise-60cebf03.cjs.js:1643:10
    at Array.map (<anonymous>)
    at Object.getDelayedTransitions (file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/raise-60cebf03.cjs.js:1638:29)
    at file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/xstate.cjs.js:262:76
    at memo (file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/xstate.cjs.js:50:25)
    at StateNode.get after (file:///node_modules/.deno/[email protected]/node_modules/xstate/dist/xstate.cjs.js:262:12)

Please sign in to comment.