mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
Use canary in CI (#1823)
* Use canary in CI * Only publish canary when types change Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu>
This commit is contained in:
@@ -2,6 +2,8 @@ name: Release bun-types@canary
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'packages/bun-types/**'
|
||||
jobs:
|
||||
tests:
|
||||
name: Build, test, publish canary
|
||||
@@ -22,7 +24,7 @@ jobs:
|
||||
- name: Install Bun
|
||||
uses: oven-sh/setup-bun@v0.1.8
|
||||
with:
|
||||
bun-version: latest
|
||||
bun-version: canary
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
4
.github/workflows/bun-types-release.yml
vendored
4
.github/workflows/bun-types-release.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
||||
- name: Install bun
|
||||
uses: oven-sh/setup-bun@v0.1.8
|
||||
with:
|
||||
bun-version: latest
|
||||
bun-version: canary
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install node
|
||||
@@ -88,7 +88,7 @@ jobs:
|
||||
- name: Install bun
|
||||
uses: oven-sh/setup-bun@v0.1.8
|
||||
with:
|
||||
bun-version: latest
|
||||
bun-version: canary
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Download all artifacts
|
||||
|
||||
2
.github/workflows/bun-types-tests.yml
vendored
2
.github/workflows/bun-types-tests.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- name: Install bun
|
||||
uses: oven-sh/setup-bun@v0.1.8
|
||||
with:
|
||||
bun-version: latest
|
||||
bun-version: canary
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Install node
|
||||
|
||||
9
packages/bun-types/tests/readline.test-d.ts
Normal file
9
packages/bun-types/tests/readline.test-d.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as readline from "node:readline/promises";
|
||||
|
||||
const rl = readline.createInterface({
|
||||
input: process.stdin,
|
||||
output: process.stdout,
|
||||
terminal: true,
|
||||
});
|
||||
const answer = await rl.question("What is your age?\n");
|
||||
console.log("Your age is: " + answer);
|
||||
Reference in New Issue
Block a user