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:
Colin McDonnell
2023-01-17 23:06:26 -08:00
committed by GitHub
parent d16951422b
commit bba4054da3
4 changed files with 15 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View 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);