Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
37 changes: 27 additions & 10 deletions .github/workflows/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,19 @@ on:
workflow_dispatch:

jobs:
standard:
name: Standard
ci:
name: CI (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
strategy:
matrix:
node-version: [20, 22, 24]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check types
Expand All @@ -30,10 +29,28 @@ jobs:
run: npm run check-ci
- name: Test
run: npm run test:coverage

release:
name: Release
runs-on: ubuntu-latest
needs: [ci]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"access": "public"
},
"engines": {
"node": ">=22.14.0"
"node": ">=20.0.0"
},
"scripts": {
"build": "tsc && tsdown",
Expand All @@ -58,7 +58,6 @@
"@types/node": "22.14.1",
"@vitest/coverage-v8": "4.1.5",
"husky": "9.1.7",
"semantic-release": "25.0.3",
"tsdown": "0.21.10",
"typescript": "5.0.4",
"vite": "8.0.10",
Expand Down