Skip to content

Commit ba4093c

Browse files
committed
update workflows and package stuff
1 parent 5b83372 commit ba4093c

6 files changed

Lines changed: 38 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request_target:
7+
paths:
8+
- 'src/**'
9+
- 'test/**'
10+
- '*.json'
11+
- '*.js'
12+
- '*.ts'
13+
- 'lib/**'
14+
- 'scripts/**'
15+
workflow_dispatch:
416

517
jobs:
618
build:
719
strategy:
820
matrix:
9-
node-version: [20.x, 22.x]
21+
node-version: [22.x, 24.x]
1022
platform:
1123
- os: ubuntu-latest
1224
shell: bash
@@ -25,10 +37,10 @@ jobs:
2537

2638
steps:
2739
- name: Checkout Repository
28-
uses: actions/checkout@v4
40+
uses: actions/checkout@v5
2941

3042
- name: Use Nodejs ${{ matrix.node-version }}
31-
uses: actions/setup-node@v4
43+
uses: actions/setup-node@v6
3244
with:
3345
node-version: ${{ matrix.node-version }}
3446

.github/workflows/typedoc.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,30 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy static content to Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
106
workflow_dispatch:
117

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
138
permissions:
149
contents: read
1510
pages: write
1611
id-token: write
1712

18-
# Allow one concurrent deployment
1913
concurrency:
2014
group: "pages"
2115
cancel-in-progress: true
2216

2317
jobs:
24-
# Single deploy job since we're just deploying
2518
deploy:
2619
environment:
2720
name: github-pages
2821
url: ${{ steps.deployment.outputs.page_url }}
2922
runs-on: ubuntu-latest
3023
steps:
3124
- name: Checkout
32-
uses: actions/checkout@v3
25+
uses: actions/checkout@v5
3326
- name: Use Nodejs ${{ matrix.node-version }}
34-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v6
3528
with:
3629
node-version: 20.x
3730
- name: Install dependencies
@@ -40,9 +33,9 @@ jobs:
4033
run: npm run typedoc
4134

4235
- name: Setup Pages
43-
uses: actions/configure-pages@v4
36+
uses: actions/configure-pages@v5
4437
- name: Upload artifact
45-
uses: actions/upload-pages-artifact@v3
38+
uses: actions/upload-pages-artifact@v4
4639
with:
4740
path: './docs'
4841
- name: Deploy to GitHub Pages

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/node_modules
2+
/tsconfig.json
3+
/package-lock.json
4+
/package.json
25
/LICENSE.md
36
/example
47
/.github
@@ -12,3 +15,4 @@
1215
/test/fixture
1316
/test/fixtures
1417
/.tshy
18+
/docs

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"experimentalTernaries": true,
3+
"semi": false,
4+
"printWidth": 75,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"singleQuote": true,
8+
"jsxSingleQuote": false,
9+
"bracketSameLine": true,
10+
"arrowParens": "avoid",
11+
"endOfLine": "lf"
12+
}

package.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@
3838
"benchmark": "node benchmark/index.js",
3939
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
4040
},
41-
"prettier": {
42-
"semi": false,
43-
"printWidth": 80,
44-
"tabWidth": 2,
45-
"useTabs": false,
46-
"singleQuote": true,
47-
"jsxSingleQuote": false,
48-
"bracketSameLine": true,
49-
"arrowParens": "avoid",
50-
"endOfLine": "lf"
51-
},
5241
"engines": {
5342
"node": "20 || >=22"
5443
},

typedoc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"tsconfig": "./.tshy/esm.json",
3+
"entryPoints": ["./src/**/*.+(ts|tsx|mts|cts)"],
24
"navigationLinks": {
35
"GitHub": "https://github.com/isaacs/minimatch",
46
"isaacs projects": "https://isaacs.github.io/"

0 commit comments

Comments
 (0)