@ronaldphilipsen/local-action 7.1.0 → 7.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env.example CHANGED
@@ -4,16 +4,16 @@
4
4
  ################################################################################
5
5
 
6
6
  ################################################################################
7
- # @github/local-action Variables #
7
+ # @ronaldphilipsen/local-action Variables #
8
8
  ################################################################################
9
9
 
10
- # Environment variables specific to the @github/local-action tool.
10
+ # Environment variables specific to the @ronaldphilipsen/local-action tool.
11
11
 
12
12
  ######################################################################
13
- # The path to a workspace that can be used by `@github/local-action` #
13
+ # The path to a workspace that can be used by `@ronaldphilipsen/local-action` #
14
14
  # during local testing. This will be used as the root directory for #
15
15
  # any files created by your action, as well as any environment files #
16
- # that are created automatically by `@github/local-action`. If you #
16
+ # that are created automatically by `@ronaldphilipsen/local-action`. If you #
17
17
  # try to interact with the `@actions/artifact` or `@actions/cache` #
18
18
  # packages, this tool will throw an error if this is not set to a #
19
19
  # valid path. #
@@ -347,7 +347,7 @@ RUNNER_NAME="Local Action"
347
347
  # to set environment variables, outputs, and other information. These files #
348
348
  # are created and managed by GitHub Actions. #
349
349
  # #
350
- # Currently these are not used by `@github/local-action`. #
350
+ # Currently these are not used by `@ronaldphilipsen/local-action`. #
351
351
  ################################################################################
352
352
 
353
353
  ######################################################################
@@ -34,11 +34,11 @@ jobs:
34
34
  steps:
35
35
  - name: Checkout
36
36
  id: checkout
37
- uses: actions/checkout@v6
37
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
38
38
 
39
39
  - name: Initialize CodeQL
40
40
  id: initialize
41
- uses: github/codeql-action/init@v4
41
+ uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
42
42
  with:
43
43
  languages: ${{ matrix.language }}
44
44
  source-root: src
@@ -46,8 +46,8 @@ jobs:
46
46
 
47
47
  - name: Autobuild
48
48
  id: autobuild
49
- uses: github/codeql-action/autobuild@v4
49
+ uses: github/codeql-action/autobuild@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
50
50
 
51
51
  - name: Perform CodeQL Analysis
52
52
  id: analyze
53
- uses: github/codeql-action/analyze@v4
53
+ uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4
@@ -8,9 +8,7 @@ on:
8
8
 
9
9
  permissions:
10
10
  actions: read
11
- checks: write
12
11
  contents: read
13
- statuses: write
14
12
 
15
13
  jobs:
16
14
  continuous-integration:
@@ -24,11 +22,11 @@ jobs:
24
22
  steps:
25
23
  - name: Checkout
26
24
  id: checkout
27
- uses: actions/checkout@v6
25
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
28
26
 
29
27
  - name: Setup Node.js
30
28
  id: setup-node
31
- uses: actions/setup-node@v6
29
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
32
30
  with:
33
31
  node-version-file: .node-version
34
32
  cache: npm
@@ -60,28 +58,28 @@ jobs:
60
58
  runs-on: ${{ matrix.os }}
61
59
 
62
60
  steps:
63
- - name: Checkout @github/local-action
61
+ - name: Checkout @ronaldphilipsen/local-action
64
62
  id: checkout
65
- uses: actions/checkout@v6
63
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
66
64
  with:
67
65
  path: local-action
68
66
 
69
67
  - name: Checkout TypeScript Template
70
68
  id: checkout-typescript
71
- uses: actions/checkout@v6
69
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
72
70
  with:
73
71
  path: typescript-action
74
- repository: actions/typescript-action
72
+ repository: RonaldPhilipsen/typescript-action
75
73
 
76
74
  - name: Setup Node.js
77
75
  id: setup-node
78
- uses: actions/setup-node@v6
76
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
79
77
  with:
80
78
  node-version-file: local-action/.node-version
81
79
  cache: npm
82
80
  cache-dependency-path: local-action/package-lock.json
83
81
 
84
- - name: Install @github/local-action Dependencies
82
+ - name: Install @ronaldphilipsen/local-action Dependencies
85
83
  id: install
86
84
  run: npm ci
87
85
  working-directory: local-action
@@ -90,10 +88,10 @@ jobs:
90
88
  id: install-typescript
91
89
  run: |
92
90
  npm ci
93
- npm uninstall @github/local-action
91
+ npm uninstall @ronaldphilipsen/local-action
94
92
  working-directory: typescript-action
95
93
 
96
- - name: Link @github/local-action
94
+ - name: Link @ronaldphilipsen/local-action
97
95
  id: link
98
96
  run: npm link
99
97
  working-directory: local-action
@@ -121,28 +119,28 @@ jobs:
121
119
  runs-on: ${{ matrix.os }}
122
120
 
123
121
  steps:
124
- - name: Checkout @github/local-action
122
+ - name: Checkout @ronaldphilipsen/local-action
125
123
  id: checkout
126
- uses: actions/checkout@v6
124
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
127
125
  with:
128
126
  path: local-action
129
127
 
130
128
  - name: Checkout JavaScript Template
131
129
  id: checkout-javascript
132
- uses: actions/checkout@v6
130
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
133
131
  with:
134
132
  path: javascript-action
135
- repository: actions/javascript-action
133
+ repository: RonaldPhilipsen/javascript-action
136
134
 
137
135
  - name: Setup Node.js
138
136
  id: setup-node
139
- uses: actions/setup-node@v6
137
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
140
138
  with:
141
139
  node-version-file: local-action/.node-version
142
140
  cache: npm
143
141
  cache-dependency-path: local-action/package-lock.json
144
142
 
145
- - name: Install @github/local-action Dependencies
143
+ - name: Install @ronaldphilipsen/local-action Dependencies
146
144
  id: install
147
145
  run: npm ci
148
146
  working-directory: local-action
@@ -151,10 +149,10 @@ jobs:
151
149
  id: install-javascript
152
150
  run: |
153
151
  npm ci
154
- npm uninstall @github/local-action
152
+ npm uninstall @ronaldphilipsen/local-action
155
153
  working-directory: javascript-action
156
154
 
157
- - name: Link @github/local-action
155
+ - name: Link @ronaldphilipsen/local-action
158
156
  id: link
159
157
  run: npm link
160
158
  working-directory: local-action
@@ -182,34 +180,34 @@ jobs:
182
180
  runs-on: ${{ matrix.os }}
183
181
 
184
182
  steps:
185
- - name: Checkout @github/local-action
183
+ - name: Checkout @ronaldphilipsen/local-action
186
184
  id: checkout
187
- uses: actions/checkout@v6
185
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
188
186
  with:
189
187
  path: local-action
190
188
 
191
189
  - name: Checkout TypeScript Template
192
190
  id: checkout-typescript
193
- uses: actions/checkout@v6
191
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
194
192
  with:
195
193
  path: typescript-pnpm-esm-action
196
- repository: ncalteen/typescript-pnpm-esm-action
194
+ repository: RonaldPhilipsen/typescript-pnpm-esm-action
197
195
 
198
196
  - name: Install pnpm
199
197
  id: pnpm
200
- uses: pnpm/action-setup@v4
198
+ uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
201
199
  with:
202
200
  version: latest
203
201
 
204
202
  - name: Setup Node.js
205
203
  id: setup-node
206
- uses: actions/setup-node@v6
204
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
207
205
  with:
208
206
  node-version-file: local-action/.node-version
209
207
  cache: npm
210
208
  cache-dependency-path: local-action/package-lock.json
211
209
 
212
- - name: Install @github/local-action Dependencies
210
+ - name: Install @ronaldphilipsen/local-action Dependencies
213
211
  id: install
214
212
  run: npm ci
215
213
  working-directory: local-action
@@ -218,7 +216,7 @@ jobs:
218
216
  id: install-typescript
219
217
  run: |
220
218
  pnpm install
221
- pnpm uninstall @github/local-action
219
+ pnpm uninstall @ronaldphilipsen/local-action
222
220
  working-directory: typescript-pnpm-esm-action
223
221
 
224
222
  - name: Create Global Link
@@ -254,34 +252,34 @@ jobs:
254
252
  runs-on: ${{ matrix.os }}
255
253
 
256
254
  steps:
257
- - name: Checkout @github/local-action
255
+ - name: Checkout @ronaldphilipsen/local-action
258
256
  id: checkout
259
- uses: actions/checkout@v6
257
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
260
258
  with:
261
259
  path: local-action
262
260
 
263
261
  - name: Checkout TypeScript Template
264
262
  id: checkout-typescript
265
- uses: actions/checkout@v6
263
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
266
264
  with:
267
265
  path: typescript-pnpm-cjs-action
268
- repository: ncalteen/typescript-pnpm-cjs-action
266
+ repository: RonaldPhilipsen/typescript-pnpm-cjs-action
269
267
 
270
268
  - name: Install pnpm
271
269
  id: pnpm
272
- uses: pnpm/action-setup@v4
270
+ uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6
273
271
  with:
274
272
  version: latest
275
273
 
276
274
  - name: Setup Node.js
277
275
  id: setup-node
278
- uses: actions/setup-node@v6
276
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
279
277
  with:
280
278
  node-version-file: local-action/.node-version
281
279
  cache: npm
282
280
  cache-dependency-path: local-action/package-lock.json
283
281
 
284
- - name: Install @github/local-action Dependencies
282
+ - name: Install @ronaldphilipsen/local-action Dependencies
285
283
  id: install
286
284
  run: npm ci
287
285
  working-directory: local-action
@@ -290,7 +288,7 @@ jobs:
290
288
  id: install-typescript
291
289
  run: |
292
290
  pnpm install
293
- pnpm uninstall @github/local-action
291
+ pnpm uninstall @ronaldphilipsen/local-action
294
292
  working-directory: typescript-pnpm-cjs-action
295
293
 
296
294
  - name: Create Global Link
@@ -325,28 +323,28 @@ jobs:
325
323
  working-directory: local-action
326
324
 
327
325
  steps:
328
- - name: Checkout @github/local-action
326
+ - name: Checkout @ronaldphilipsen/local-action
329
327
  id: checkout
330
- uses: actions/checkout@v6
328
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
331
329
  with:
332
330
  path: local-action
333
331
 
334
332
  - name: Checkout TypeScript Template
335
333
  id: checkout-typescript
336
- uses: actions/checkout@v6
334
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
337
335
  with:
338
336
  path: typescript-yarn-esm-action
339
- repository: ncalteen/typescript-yarn-esm-action
337
+ repository: RonaldPhilipsen/typescript-yarn-esm-action
340
338
 
341
339
  - name: Setup Node.js
342
340
  id: setup-node
343
- uses: actions/setup-node@v6
341
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
344
342
  with:
345
343
  node-version-file: local-action/.node-version
346
344
  cache: npm
347
345
  cache-dependency-path: local-action/package-lock.json
348
346
 
349
- - name: Install @github/local-action Dependencies
347
+ - name: Install @ronaldphilipsen/local-action Dependencies
350
348
  id: install
351
349
  run: npm ci
352
350
  working-directory: local-action
@@ -24,13 +24,13 @@ jobs:
24
24
  steps:
25
25
  - name: Checkout
26
26
  id: checkout
27
- uses: actions/checkout@v6
27
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
28
28
  with:
29
29
  fetch-depth: 0
30
30
 
31
31
  - name: Setup Node.js
32
32
  id: setup-node
33
- uses: actions/setup-node@v6
33
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
34
34
  with:
35
35
  node-version-file: .node-version
36
36
  cache: npm
@@ -44,4 +44,4 @@ jobs:
44
44
  env:
45
45
  DEFAULT_WORKSPACE: ${{ github.workspace }}
46
46
  GITHUB_TOKEN: ${{ github.token }}
47
- uses: oxsecurity/megalinter/flavors/cupcake@v9
47
+ uses: oxsecurity/megalinter/flavors/cupcake@f2fe8c1cba37091848df3e524066c8c23ef353ed # v10
@@ -54,7 +54,7 @@ jobs:
54
54
  fetch-depth: 0
55
55
  persist-credentials: false
56
56
  - name: Install Node.js
57
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
57
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
58
58
  timeout-minutes: 5
59
59
  with:
60
60
  node-version: '26'
@@ -63,18 +63,32 @@ jobs:
63
63
  run: |
64
64
  npm version "$VERSION" --no-git-tag-version
65
65
  - name: npm publish
66
- run: npm publish
67
- - name: publish to GitHub Packages
66
+ run: |
67
+ npm publish || {
68
+ echo "npm publish failed; checking if the version already exists..."
69
+ if npm view "@ronaldphilipsen/local-action@$VERSION" version --registry https://registry.npmjs.org; then
70
+ echo "$VERSION is already published; skipping"
71
+ else
72
+ exit 1
73
+ fi
74
+ }
75
+ - name: Install Node.js (GitHub Packages)
76
+ uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
77
+ timeout-minutes: 5
68
78
  env:
69
79
  NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
- run: npm publish --registry https://npm.pkg.github.com
80
+ with:
81
+ node-version: '26'
82
+ registry-url: 'https://npm.pkg.github.com'
83
+ - name: publish to GitHub Packages
84
+ run: npm publish
71
85
  - name: Commit version bump
72
86
  env:
73
87
  GH_TOKEN: ${{ github.token }}
74
88
  run: |
75
89
  git config user.name 'github-actions[bot]'
76
90
  git config user.email 'github-actions[bot]@users.noreply.github.com'
77
- git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git
91
+ git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git"
78
92
  git switch -c "release-$VERSION"
79
93
  git add package.json package-lock.json
80
94
  git commit -m "chore: bump version to $VERSION"
@@ -92,7 +106,7 @@ jobs:
92
106
  gh release create "$TAG" \
93
107
  --title "$TAG" \
94
108
  --notes "$RELEASE_NOTES" \
95
- $( [[ "$PRERELEASE" == 'true' ]] && echo '--prerelease' || echo '' )
109
+ "$( [[ "$PRERELEASE" == 'true' ]] && echo '--prerelease' || echo '' )"
96
110
  - name: clean up branch
97
111
  if: always()
98
112
  run: |
package/.mega-linter.yml CHANGED
@@ -1,6 +1,11 @@
1
1
  # Mega-Linter Configuration File
2
2
  # https://megalinter.io/latest/config-file/
3
3
 
4
+ # Allow zizmor to authenticate with GITHUB_TOKEN so it can resolve
5
+ # external action refs (ref-confusion audit)
6
+ ACTION_ZIZMOR_UNSECURED_ENV_VARIABLES:
7
+ - GITHUB_TOKEN
8
+
4
9
  # Activates formatting and autofix
5
10
  APPLY_FIXES: none
6
11
 
@@ -26,6 +31,8 @@ DISABLE_LINTERS:
26
31
  - MARKDOWN_MARKDOWN_LINK_CHECK
27
32
  - MARKDOWN_MARKDOWN_TABLE_FORMATTER
28
33
  - REPOSITORY_KICS
34
+ # Redundant with grype/trivy and has no severity gating
35
+ - REPOSITORY_OSV_SCANNER
29
36
  - REPOSITORY_SEMGREP
30
37
  - TYPESCRIPT_STANDARD
31
38
  - YAML_V8R
@@ -45,6 +52,8 @@ DISABLE_LINTERS:
45
52
 
46
53
  # List of excluded directory basenames.
47
54
  EXCLUDED_DIRECTORIES:
55
+ # Intentionally broken test data, not lintable source
56
+ - __fixtures__
48
57
  - .git
49
58
  - coverage
50
59
  - dist
@@ -52,6 +61,11 @@ EXCLUDED_DIRECTORIES:
52
61
  - node_modules
53
62
  - reports
54
63
 
64
+ # List of excluded file paths. bin/local-action.js is excluded from the
65
+ # repo's own eslint project and cannot be type-aware linted.
66
+ EXCLUDED_FILES:
67
+ - bin/local-action.js
68
+
55
69
  # If set to true, MegaLinter fails if a linter is missing in the selected flavor
56
70
  FAIL_IF_MISSING_LINTER_IN_FLAVOR: false
57
71
 
package/.node-version CHANGED
@@ -1 +1 @@
1
- 26.12.1
1
+ 26.13.0
package/.trivy.yml ADDED
@@ -0,0 +1,5 @@
1
+ # Fail only on high/critical vulnerabilities; medium findings in
2
+ # transitive dependencies are tracked, not release-blocking.
3
+ severity:
4
+ - HIGH
5
+ - CRITICAL
package/CHANGELOG.md CHANGED
@@ -46,7 +46,7 @@ This version adds **experimental** support for [pnpm](https://pnpm.io/) and
46
46
  [yarn](https://yarnpkg.com/).
47
47
 
48
48
  Depending on the package manager and version, the invocation of the `tsx`
49
- command that drives `@github/local-action` is invoked differently.
49
+ command that drives `@ronaldphilipsen/local-action` is invoked differently.
50
50
 
51
51
  | Package Manager | Version | Command |
52
52
  | --------------- | ------- | ----------- |
@@ -57,7 +57,8 @@ command that drives `@github/local-action` is invoked differently.
57
57
 
58
58
  Alongside this, yarn PnP support is implemented via
59
59
  [unplugging](https://yarnpkg.com/cli/unplug) any modules stubbed by
60
- `@github/local-action` and "re-plugging" after completion of the action run.
60
+ `@ronaldphilipsen/local-action` and "re-plugging" after completion of the action
61
+ run.
61
62
 
62
63
  This support is still a work in progress. Any feedback or issues are welcome!
63
64
 
package/CONTRIBUTING.md CHANGED
@@ -64,7 +64,7 @@ against various repositories with different configurations.
64
64
  Once you're finished testing, make sure to unlink!
65
65
 
66
66
  ```bash
67
- npm unlink @github/local-action
67
+ npm unlink @ronaldphilipsen/local-action
68
68
  ```
69
69
 
70
70
  #### Example Actions to Test
package/README.md CHANGED
@@ -64,8 +64,8 @@ issues, please [file an issue](https://github.com/github/local-action/issues).
64
64
 
65
65
  Some caveats to this support are listed below.
66
66
 
67
- - The `@github/local-action` package should be run using
68
- `yarn dlx @github/local-action` instead of `yarn local-action`.
67
+ - The `@ronaldphilipsen/local-action` package should be run using
68
+ `yarn dlx @ronaldphilipsen/local-action` instead of `yarn local-action`.
69
69
  - This tool does not support CommonJS actions using `yarn`.
70
70
 
71
71
  ## Prerequisites
@@ -153,7 +153,7 @@ For additional information about transpiled action code, see
153
153
  1. Install via `npm`
154
154
 
155
155
  ```bash
156
- npm i -g @github/local-action
156
+ npm i -g @ronaldphilipsen/local-action
157
157
  ```
158
158
 
159
159
  ### Option 2: Clone this Repository
@@ -274,7 +274,7 @@ values).
274
274
  Possible errors that can arise from not having `allowJs: false`:
275
275
 
276
276
  - `TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file` from tsx
277
- when trying to run `npx @github/local-action`.
277
+ when trying to run `npx @ronaldphilipsen/local-action`.
278
278
 
279
279
  ## Features
280
280
 
@@ -53,6 +53,24 @@ function entrypoint() {
53
53
  return
54
54
  }
55
55
 
56
+ // If the package ships its own tsx (development install or npm link),
57
+ // run it directly. This avoids package manager sandboxes such as yarn
58
+ // PnP, which cannot resolve dependencies for files outside the project.
59
+ const bundledTsx = path.join(
60
+ packagePath,
61
+ 'node_modules',
62
+ 'tsx',
63
+ 'dist',
64
+ 'cli.mjs'
65
+ )
66
+ if (fs.existsSync(bundledTsx)) {
67
+ execSync(
68
+ `node "${bundledTsx}" "${path.join(packagePath, 'src', 'index.ts')}" -- ${args.join(' ')}`,
69
+ { stdio: 'inherit' }
70
+ )
71
+ return
72
+ }
73
+
56
74
  // Starting in the TARGET_ACTION_PATH, locate the package.json file and
57
75
  // determine the package manager.
58
76
  const actionPackageDirs = path
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ronaldphilipsen/local-action",
3
3
  "description": "Local Debugging for GitHub Actions",
4
- "version": "7.1.0",
4
+ "version": "7.2.1",
5
5
  "type": "module",
6
6
  "author": "Nick Alteen <ncalteen@github.com>",
7
7
  "private": false,
@@ -55,17 +55,17 @@
55
55
  "@octokit/plugin-retry": "^8.0.3",
56
56
  "@octokit/rest": "^22.0.1",
57
57
  "archiver": "^7.0.1",
58
- "chalk": "^5.6.2",
58
+ "chalk": "^6.0.0",
59
59
  "commander": "^14.0.3",
60
60
  "comment-json": "^4.5.1",
61
61
  "dotenv": "^17.3.1",
62
- "figlet": "^1.10.0",
62
+ "figlet": "^1.12.0",
63
63
  "quibble": "^0.9.2",
64
64
  "semver": "^7.7.4",
65
65
  "tsconfig-paths": "^4.2.0",
66
66
  "tsx": "^4.21.0",
67
67
  "typescript": "^5.9.3",
68
- "yaml": "^2.8.2"
68
+ "yaml": "^2.9.1"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@eslint/compat": "^2.0.2",
@@ -74,7 +74,7 @@
74
74
  "@jest/globals": "^30.2.0",
75
75
  "@types/archiver": "^7.0.0",
76
76
  "@types/jest": "^30.0.0",
77
- "@types/node": "^25.2.3",
77
+ "@types/node": "^26.0.0",
78
78
  "@types/semver": "^7.7.1",
79
79
  "@types/unzip-stream": "^0.3.4",
80
80
  "@typescript-eslint/eslint-plugin": "^8.56.0",
@@ -82,7 +82,7 @@
82
82
  "eslint": "^10.0.0",
83
83
  "eslint-plugin-prettier": "^5.5.5",
84
84
  "jest": "^30.2.0",
85
- "jest-junit": "^16.0.0",
85
+ "jest-junit": "^17.0.0",
86
86
  "make-coverage-badge": "^1.2.0",
87
87
  "prettier": "^3.8.1",
88
88
  "ts-jest": "^29.4.6",
package/renovate.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": ["config:recommended"]
4
+ }
@@ -1,93 +0,0 @@
1
- name: Continuous Delivery
2
-
3
- on:
4
- pull_request:
5
- types:
6
- - closed
7
- branches:
8
- - main
9
- paths:
10
- - bin/**/*
11
- - src/**/*
12
- - .node-version
13
- - package-lock.json
14
- - package.json
15
- - tsconfig.base.json
16
- - tsconfig.eslint.json
17
- - tsconfig.json
18
- workflow_dispatch:
19
-
20
- permissions:
21
- contents: write
22
- id-token: write
23
-
24
- jobs:
25
- publish:
26
- name: Publish to npm
27
- runs-on: ubuntu-latest
28
-
29
- # Only run this job if one of the following is true:
30
- # - It was run manually.
31
- # - A PR was merged that was not from Dependabot or a fork.
32
- if: |
33
- github.event_name == 'workflow_dispatch' ||
34
- (
35
- github.event.pull_request.merged == true &&
36
- startsWith(github.head_ref, 'dependabot/') == false &&
37
- github.event.pull_request.head.repo.fork == false
38
- )
39
-
40
- steps:
41
- - name: Checkout
42
- id: checkout
43
- uses: actions/checkout@v6
44
- with:
45
- fetch-tags: true
46
-
47
- - name: Setup Node.js
48
- id: setup-node
49
- uses: actions/setup-node@v6
50
- with:
51
- cache: npm
52
- node-version-file: .node-version
53
- registry-url: https://registry.npmjs.org/
54
-
55
- - name: Install Dependencies
56
- id: install
57
- run: npm ci
58
-
59
- - name: Test
60
- id: test
61
- run: npm run ci-test
62
-
63
- - name: Publish
64
- id: publish
65
- run: |
66
- npm publish --ignore-scripts --access public
67
-
68
- release:
69
- name: Create Release
70
- runs-on: ubuntu-latest
71
-
72
- needs: publish
73
-
74
- steps:
75
- - name: Checkout
76
- id: checkout
77
- uses: actions/checkout@v6
78
- with:
79
- fetch-tags: true
80
-
81
- - name: Tag
82
- id: tag
83
- uses: issue-ops/semver@v3
84
- with:
85
- manifest-path: package.json
86
- workspace: ${{ github.workspace }}
87
- ref: main
88
-
89
- - name: Create Release
90
- id: release
91
- uses: issue-ops/releaser@v3
92
- with:
93
- tag: v${{ steps.tag.outputs.version }}
@@ -1,44 +0,0 @@
1
- name: Version Check
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - main
7
- paths:
8
- - bin/**/*
9
- - src/**/*
10
- - .node-version
11
- - package-lock.json
12
- - package.json
13
- - tsconfig.base.json
14
- - tsconfig.eslint.json
15
- - tsconfig.json
16
-
17
- permissions:
18
- checks: write
19
- contents: read
20
- pull-requests: write
21
-
22
- jobs:
23
- check-version:
24
- name: Version Check
25
- runs-on: ubuntu-latest
26
-
27
- if: ${{ startsWith(github.head_ref, 'dependabot/') == false }}
28
-
29
- steps:
30
- - name: Checkout
31
- id: checkout
32
- uses: actions/checkout@v6
33
- with:
34
- fetch-tags: true
35
- fetch-depth: 0
36
-
37
- - name: Check Version
38
- id: check-version
39
- uses: issue-ops/semver@v3
40
- with:
41
- check-only: true
42
- comment: true
43
- manifest-path: package.json
44
- workspace: ${{ github.workspace }}