Skip to content

Commit 62f90f9

Browse files
authored
fix: allow release to GitHub Package Registry (#4785)
Dependabot damaged the package-lock.json file which resulted in failing to release npm package to GitHub Package Registry. package-lock.json generated on Node.js 22.11.0 doesn't work under npm ci on Node.js 22.14.0.
1 parent 553ad46 commit 62f90f9

File tree

10 files changed

+203
-17
lines changed

10 files changed

+203
-17
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ARG VARIANT="22-bookworm"
22
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:1-${VARIANT}
33

4-
# Install 22.11.0 version of Node.js using nvm
5-
ARG EXTRA_NODE_VERSION="22.11.0"
4+
# Install 22.14.0 version of Node.js using nvm
5+
ARG EXTRA_NODE_VERSION="22.14.0"
66
RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
77

88
## install emscripten

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Use Node.js 22
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 22
27+
node-version: 22.14.0
2828
cache: 'npm'
2929
cache-dependency-path: 'package-lock.json'
3030
- name: Install dependencies
@@ -42,7 +42,7 @@ jobs:
4242
- name: Use Node.js 22
4343
uses: actions/setup-node@v4
4444
with:
45-
node-version: 22
45+
node-version: 22.14.0
4646
cache: 'npm'
4747
cache-dependency-path: 'package-lock.json'
4848
- name: Install dependencies
@@ -61,7 +61,7 @@ jobs:
6161
- name: Use Node.js 22
6262
uses: actions/setup-node@v4
6363
with:
64-
node-version: 22
64+
node-version: 22.14.0
6565
cache: 'npm'
6666
cache-dependency-path: 'package-lock.json'
6767
- name: Install dependencies
@@ -79,7 +79,7 @@ jobs:
7979
- name: Use Node.js 22
8080
uses: actions/setup-node@v4
8181
with:
82-
node-version: 22
82+
node-version: 22.14.0
8383
cache: 'npm'
8484
cache-dependency-path: 'package-lock.json'
8585
- name: Install dependencies
@@ -99,7 +99,7 @@ jobs:
9999
- name: Use Node.js 22
100100
uses: actions/setup-node@v4
101101
with:
102-
node-version: 22
102+
node-version: 22.14.0
103103
cache: 'npm'
104104
cache-dependency-path: 'package-lock.json'
105105
- name: Install dependencies

.github/workflows/nightly-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Use Node.js 22
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 22
20+
node-version: 22.14.0
2121
cache: 'npm'
2222
cache-dependency-path: 'package-lock.json'
2323
- name: Install dependencies

.github/workflows/release-to-GPR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 22
29+
node-version: 22.14.0
3030
registry-url: https://npm.pkg.github.com/
3131
scope: "@swagger-api"
3232
cache: 'npm'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 22
26+
node-version: 22.14.0
2727
registry-url: https://registry.npmjs.org
2828
cache: 'npm'
2929
cache-dependency-path: 'package-lock.json'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.11.0
1+
22.14.0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22.11.0-bookworm
1+
FROM node:22.14.0-bookworm
22

33
# use bash as default shell
44
SHELL ["/bin/bash", "-c"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ ApiDOM Playground is available at [https://swagger-api.github.io/apidom/](https:
123123
This is a monorepo for all ApiDOM packages. All the code is written in [TypeScript](https://www.typescriptlang.org/).
124124
All the information necessary for working with monorepo can be found in this [article](https://vladimirgorej.com/blog/things-i-have-learned-maintaining-javascript-monorepo-with-lerna/).
125125

126-
Assuming [prerequisites](#prerequisites) are already installed, [Node.js](https://nodejs.org/) `>=22.11.0` and `npm >=10.8.2`
126+
Assuming [prerequisites](#prerequisites) are already installed, [Node.js](https://nodejs.org/) `>=22.14.0` and `npm >=10.9.2`
127127
are the minimum required versions that this repo runs on, but we recommend using the latest version of Node.js@22.
128128

129129
### Setting up

0 commit comments

Comments
 (0)