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
30 changes: 3 additions & 27 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
---
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
- 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'
- run: pnpm install
- name: Test ${{ matrix.node-version }}
run: npm run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
uses: cto-af/workflows/.github/workflows/node-ci.yml@main
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
21 changes: 3 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,9 @@ name: Publish Package to npmjs
on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
environment: publish
publish:
uses: cto-af/workflows/.github/workflows/publish.yml@main
permissions:
contents: read
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 test
- run: npm run lint
- run: npm pkg delete devDependencies scripts packageManager
- run: npm publish --access public --provenance
21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,24 @@
"lint": "eslint .",
"coverage": "c8 npm test",
"nock": "rm -f test/fixtures/wsd.test.js.json && NOCK_BACK_MODE=record npx ava --serial test/wsd.test.js",
"release": "npm version patch && git push --follow-tags && npm publish"
"build": "npm run lint && npm run coverage"
},
"devDependencies": {
"@cto.af/eslint-config": "^6.2.5",
"@eslint/markdown": "7.5.1",
"@eslint/markdown": "^7.5.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^25.3.5",
"eslint": "9.39.2",
"eslint-plugin-jsdoc": "^62.7.1",
"eslint-plugin-json": "^4.0.1",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-redos": "^4.5.0",
"nock": "14.0.11",
"superc8": "12.2.4",
"@types/node": "^25.5.0",
"eslint": "^9.39.2",
"eslint-plugin-jsdoc": "^62.8.0",
"nock": "^14.0.11",
"superc8": "~12.3.1",
"tmp-promise": "^3.0.3",
"typescript": "5.9.3"
"typescript": "^5.9.3"
},
"dependencies": {
"yargs": "^18.0.0"
},
"packageManager": "pnpm@10.31.0",
"packageManager": "pnpm@10.32.1",
"engines": {
"node": ">=20"
}
Expand Down
Loading