Skip to content

use node native ts #127

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 16 commits into from
Jun 26, 2025
Merged
39 changes: 15 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,26 @@ jobs:
- run: deno fmt --check
# TODO
# - run: deno lint

test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
node-version: ["20.x"]

runs-on: ${{ matrix.platform }}
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js lts/*
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: oven-sh/setup-bun@v1
- run: corepack enable yarn
cache: "npm"
node-version: "lts/*"

- run: npm i
- run: npm run build --if-present
- run: npm test
- run: npm ci
- run: node --run build

test-win:
test:
strategy:
fail-fast: false # prevent a failure in other versions run cancelling others
matrix:
platform: [windows-latest]
node-version: ["20.x"]
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: ["22.x", "24.x"]

runs-on: ${{ matrix.platform }}

Expand All @@ -53,12 +43,13 @@ jobs:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: "npm"
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: oven-sh/setup-bun@v1
- run: corepack enable yarn

- run: npm i
- run: npm run build --if-present
- run: npm test
- run: npm ci
- run: node --run test
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "20.x"
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish
Expand Down
Loading