Repository navigation
Commit 6257b2d
fix: pin npm to v11 and bump Node to 22.x to avoid npm@latest engine break (#469)
npm published v12.0.0 as "latest", which requires Node ^22.22.2 || ^24.15.0
|| >=26. The action provisioned Node 20.x and ran `npm install -g npm@latest`,
so every consumer pinned to shannah/jdeploy@master started failing with
EBADENGINE the moment npm 12 shipped, with no change on their side.
- Pin the upgrade to `npm@11` instead of tracking `npm@latest` so a future
npm major with a higher Node engine requirement can't silently break the
action again.
- Bump Node from 20.x to 22.x, clearing the runner's Node 20 deprecation
warning while staying compatible with npm 11's trusted-publishing (OIDC).
- Gate the npm upgrade in action.yml on `deploy_target == 'npm'` since
trusted publishing is npm-registry-only; GitHub-only releases skip it.
Applied the same pin/Node bump to the internal maven.yml release workflow.
Co-authored-by: Claude <noreply@anthropic.com>1 parent c103669 commit 6257b2d
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments