denoland / denoland/deploy_feedback

Auto detect runtime and set correct build steps in deploy.yml

Open
#693 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### What problem are you trying to solve?

I recently created a sample project that uses Bun for runtime.
The `deploy.yml` assumed NodeJS to be the runtime, and added this step:
```yml
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
```

meanwhile I expected it to be
```yml
- name: Install Bun
uses: oven-sh/setup-bun@v1
```

### Describe the solution you'd like

It would be cool to auto detect the project’s runtime and set the correct build steps—just like the framework is auto detected (cool feature 👌)
e.g,
- for Node base projects, check for the presence of `package.json` and use the Node build step
- For Bun, check for `bun.lockb` and use the Bun preset
- etc...

Alternatively, on the Deno dashboard, the `deploy.yml` that Deno will add to the repo could be shown to the user before they create the project, giving them the ability to make these quick adjustments.

Thanks 🦕

### Describe alternatives you've considered

Manually adjust the build step on my repo

### Documentation, Adoption, Migration Strategy

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.