Skip to content

Update Get started and publish it to npm #13

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

Merged
merged 17 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Test Action
  • Loading branch information
omaiboroda committed Oct 21, 2024
commit f64264b691900e0712491c2a305a5be91997193b
6 changes: 6 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- 'main'
paths:
- 'examples/get-started/**'
# TODO: Remove after testing
pull_request:
branches:
- '*'
paths:
- 'examples/get-started/**'

jobs:
publish:
Expand Down
9 changes: 4 additions & 5 deletions examples/get-started/bin/get-started.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -589,14 +589,14 @@ var package_default = {
"bin",
"src",
"scheduleWorkflow.ts",
"readme.md",
"tsconfig.json"
],
keywords: [
"restack",
"starter",
"template"
],
author: "Your Name",
license: "MIT",
dependencies: {
"@restackio/ai": "^0.0.75",
Expand Down Expand Up @@ -633,7 +633,6 @@ async function main() {
}
});
if (projectName) {
console.log("\u{1F680} ~ main ~ targetDir:", targetDir);
targetDir = path.join(currentDir, projectName);
const filesToCopy = ["src", "scheduleWorkflow.ts", "tsconfig.json"];
filesToCopy.forEach((file) => {
Expand Down Expand Up @@ -675,11 +674,11 @@ Project created successfully!

We suggest that you begin with following commands:

To navigate to the project, run: "${blue}cd ${projectName}${noColor}"
To navigate to the project, run: ${blue}cd ${projectName}${noColor}

To start the service, run: "${blue}npm run service${noColor}"
To start the service, run: ${blue}npm run service${noColor}

To schedule a workflow, run: "${blue}npm run schedule${noColor}"
To schedule a workflow, run: ${blue}npm run schedule${noColor}
`);
}
main();
Loading