Skip to content

Commit caa3165

Browse files
authored
Maintenance (#1)
* Update dependencies * Update node version to v24 * Pin workflow action * Add missing workflow permission * Update test workflow trigger
1 parent 7005ef8 commit caa3165

File tree

6 files changed

+1398
-1269
lines changed

6 files changed

+1398
-1269
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ jobs:
88
publish:
99
name: Publish
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
1113
steps:
12-
- uses: actions/checkout@v3
13-
- uses: dylanvann/publish-github-action@v1.1.49
14+
- uses: actions/checkout@v5
15+
- uses: dylanvann/publish-github-action@973d5c2eec5df00513bb013e4424eaf04117ebd1 # v1.1.49
1416
with:
1517
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
name: Test
22
on:
33
push:
4-
branches-ignore:
5-
- main
4+
pull_request:
65

76
jobs:
87
test:
98
name: Test
109
runs-on: ubuntu-latest
1110
steps:
12-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v5
1312
- run: yarn install --frozen-lockfile
1413
- run: yarn run yarn-deduplicate --strategy fewer --fail
1514
- run: yarn run build

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ outputs:
5050
created_pull_requests:
5151
description: A JSON stringified object mapping the base branch of the created pull requests to their number.
5252
runs:
53-
using: node16
53+
using: node24
5454
main: dist/index.js
5555
branding:
5656
icon: arrow-left-circle

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"scripts": {
1212
"prebuild": "tsc --build",
13-
"build": "ncc build src/index.ts --minify --target es2022 --v8-cache",
13+
"build": "ncc build src/index.ts --minify --target es2024 --v8-cache",
1414
"prettier": "prettier --ignore-path .gitignore \"./**/*.{cjs,js,json,md,ts,yml}\"",
1515
"xo": "xo"
1616
},
@@ -22,8 +22,8 @@
2222
"lodash-es": "^4.17.21"
2323
},
2424
"devDependencies": {
25-
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
2625
"@octokit/webhooks-types": "^7.1.0",
26+
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
2727
"@types/error-cause": "^1.0.1",
2828
"@types/lodash-es": "^4.17.8",
2929
"@types/node": "^20.4.5",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
"compilerOptions": {
33
"forceConsistentCasingInFileNames": true,
44
"isolatedModules": true,
5-
"module": "ES2022",
5+
"module": "Node16",
66
"moduleResolution": "Node16",
77
"noEmit": true,
88
"noUnusedLocals": true,
99
"noUnusedParameters": true,
1010
"strict": true,
11-
"target": "ES2022",
11+
"target": "ES2024",
1212
"types": ["node"]
1313
},
1414
"include": ["src"]

0 commit comments

Comments
 (0)