Skip to content
Merged
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
32 changes: 2 additions & 30 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,10 @@
---
name: Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
strategy:
matrix:
node-version: [20, 22, 24, 25]
platform: [ubuntu-latest]

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

steps:
- uses: actions/checkout@v6
with:
submodules: true
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Dependencies
run: pnpm install -r
- name: Test ${{ matrix.node-version }} ${{ matrix.platform }}
run: npm run build
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/codecov.json
uses: cto-af/workflows/.github/workflows/node-ci.yml@main
secrets: inherit
27 changes: 4 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,10 @@ on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
environment: publish
publish:
uses: cto-af/workflows/.github/workflows/publish.yml@main
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm pkg delete devDependencies
- name: Rebuild pnpm-lock.yaml
run: pnpm i --no-frozen-lockfile
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
publish_branch: gh-pages
- run: npm publish --access public --provenance
with:
docs: true
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@
},
"devDependencies": {
"@cto.af/eslint-config": "6.2.5",
"@eslint/markdown": "7.5.1",
"@types/node": "25.3.3",
"eslint": "10.0.2",
"eslint-plugin-jsdoc": "62.7.1",
"rimraf": "6.1.3",
"superc8": "^12.2.4",
"typedoc": "0.28.17",
"typescript": "5.9.3",
"typescript-eslint": "8.56.1"
"@eslint/markdown": "^7.5.1",
"@types/node": "^25.5.0",
"eslint": "^10.1.0",
"eslint-plugin-jsdoc": "^62.8.0",
"rimraf": "^6.1.3",
"superc8": "^12.3.1",
"typedoc": "^0.28.17",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.1"
},
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.1",
"engines": {
"node": ">=20"
}
Expand Down
Loading