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
28 changes: 2 additions & 26 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,10 @@
name: Tests

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

jobs:
build:

strategy:
matrix:
node-version: [20, 22, 24, 25]
os: [ubuntu-latest]

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

steps:
- uses: actions/checkout@v6
- 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: Install dependencies
run: pnpm install
- name: Test
run: npm run build
- 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: inherit
21 changes: 3 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,8 @@ 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
- run: npm run build
- run: npm pkg delete devDependencies
- name: Rebuild pnpm-lock.yaml
run: pnpm i --no-frozen-lockfile
- run: npm publish --access public --provenance
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,22 @@
],
"author": "Joe Hildebrand <joe-github@cursive.net>",
"license": "MIT",
"repository": "cto-af/linewrap-cli",
"repository": {
"type": "git",
"url": "git+https://github.com/cto-af/linewrap-cli.git"
},
"dependencies": {
"@cto.af/linewrap": "4.0.1",
"minus-h": "4.0.1"
},
"devDependencies": {
"@cto.af/eslint-config": "6.2.5",
"@types/node": "25.3.3",
"eslint": "10.0.2",
"eslint-plugin-mocha": "11.2.0",
"superc8": "^12.2.4"
"@types/node": "^25.5.0",
"eslint": "^10.1.0",
"eslint-plugin-mocha": "^11.2.0",
"superc8": "^12.3.1"
},
"packageManager": "pnpm@10.30.3",
"packageManager": "pnpm@10.32.1",
"engines": {
"node": ">=20"
}
Expand Down
Loading