High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
ci: use .nvmrc for node-setup node-version in github actions (#10619)
Zack Pollard5912fcc3932a
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.ymlindex 71df34395e..2d016c564a 100644--- a/.github/workflows/cli.yml+++ b/.github/workflows/cli.yml@@ -33,7 +33,7 @@ jobs:# Setup .npmrc file to publish to npm- uses: actions/setup-node@v4with:- node-version: '20.x'+ node-version-file: './cli/.nvmrc'registry-url: 'https://registry.npmjs.org'- name: Prepare SDKrun: npm ci --prefix ../open-api/typescript-sdk/diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.ymlindex bd20286e62..32e9dc399a 100644--- a/.github/workflows/docs-build.yml+++ b/.github/workflows/docs-build.yml@@ -26,6 +26,11 @@ jobs:- name: Checkout codeuses: actions/checkout@v4+ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version-file: './docs/.nvmrc'+- name: Run npm installrun: npm cidiff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.ymlindex cd3dbe2b10..e581da4b16 100644--- a/.github/workflows/sdk.yml+++ b/.github/workflows/sdk.yml@@ -19,7 +19,7 @@ jobs:# Setup .npmrc file to publish to npm- uses: actions/setup-node@v4with:- node-version: '20.x'+ node-version-file: './open-api/typescript-sdk/.nvmrc'registry-url: 'https://registry.npmjs.org'- name: Install depsrun: npm cidiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex 204ec88363..34a9d984a0 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -21,6 +21,11 @@ jobs:- name: Checkout codeuses: actions/checkout@v4+ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version-file: './server/.nvmrc'+- name: Run npm installrun: npm ci@@ -54,7 +59,7 @@ jobs:- name: Setup Nodeuses: actions/setup-node@v4with:- node-version: 20+ node-version-file: './cli/.nvmrc'- name: Setup typescript-sdkrun: npm ci && npm run build@@ -93,7 +98,7 @@ jobs:- name: Setup Nodeuses: actions/setup-node@v4with:- node-version: 20+ node-version-file: './cli/.nvmrc'- name: Setup typescript-sdkrun: npm ci && npm run build@@ -122,6 +127,11 @@ jobs:- name: Checkout codeuses: actions/checkout@v4+ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version-file: './web/.nvmrc'+- name: Run setup typescript-sdkrun: npm ci && npm run buildworking-directory: ./open-api/typescript-sdk@@ -165,7 +175,7 @@ jobs:- name: Setup Nodeuses: actions/setup-node@v4with:- node-version: 20+ node-version-file: './e2e/.nvmrc'- name: Run setup typescript-sdkrun: npm ci && npm run build@@ -273,6 +283,11 @@ jobs:- name: Checkout codeuses: actions/checkout@v4+ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version-file: './server/.nvmrc'+- name: Install server dependenciesrun: npm --prefix=server ci@@ -323,6 +338,11 @@ jobs:- name: Checkout codeuses: actions/checkout@v4+ - name: Setup Node+ uses: actions/setup-node@v4+ with:+ node-version-file: './server/.nvmrc'+- name: Install server dependenciesrun: npm cidiff --git a/open-api/typescript-sdk/.nvmrc b/open-api/typescript-sdk/.nvmrcnew file mode 100644index 0000000000..9075659573--- /dev/null+++ b/open-api/typescript-sdk/.nvmrc@@ -0,0 +1 @@+20.15.0diff --git a/open-api/typescript-sdk/package.json b/open-api/typescript-sdk/package.jsonindex f8505af0f5..0e1b598e80 100644--- a/open-api/typescript-sdk/package.json+++ b/open-api/typescript-sdk/package.json@@ -19,12 +19,15 @@"@oazapfts/runtime": "^1.0.2"},"devDependencies": {- "@types/node": "^20.11.0",+ "@types/node": "^20.11","typescript": "^5.3.3"},"repository": {"type": "git","url": "git+https://github.com/immich-app/immich.git","directory": "open-api/typescript-sdk"+ },+ "volta": {+ "node": "20.15.0"}}