High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(cli): Run npm ci in sdk folder before deploying to npm (#6986)
Jonathan Jogenfors6e853e2a9d5e
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.ymlindex 57df2bb8a2..87170e5d59 100644--- a/.github/workflows/cli.yml+++ b/.github/workflows/cli.yml@@ -3,14 +3,14 @@ on:workflow_dispatch:push:branches: [main]- paths:- - 'cli/**'- - '.github/workflows/cli.yml'+ paths:+ - "cli/**"+ - ".github/workflows/cli.yml"pull_request:branches: [main]- paths:- - 'cli/**'- - '.github/workflows/cli.yml'+ paths:+ - "cli/**"+ - ".github/workflows/cli.yml"concurrency:group: ${{ github.workflow }}-${{ github.ref }}@@ -34,7 +34,12 @@ jobs:with:node-version: "20.x"registry-url: "https://registry.npmjs.org"+ - name: Prepare SDK+ run: npm ci --prefix ../open-api/typescript-sdk/+ - name: Build SDK+ run: npm run build --prefix ../open-api/typescript-sdk/- run: npm ci+ - run: npm run build- run: npm publishif: ${{ github.event_name == 'workflow_dispatch' }}env:@@ -62,7 +67,7 @@ jobs:registry: ghcr.iousername: ${{ github.repository_owner }}password: ${{ secrets.GITHUB_TOKEN }}-+- name: Get package versionid: package-versionrun: |@@ -73,10 +78,13 @@ jobs:id: metadatauses: docker/metadata-action@v5with:+ flavor: |+ latest=falseimages: |name=ghcr.io/${{ github.repository_owner }}/immich-clitags: |type=raw,value=${{ steps.package-version.outputs.version }},enable=${{ github.event_name == 'workflow_dispatch' }}+ type=raw,value=latest,enable=${{ github.event_name == 'workflow_dispatch' }}- name: Build and push imageuses: docker/[email protected]diff --git a/cli/package.json b/cli/package.jsonindex caa59b2027..559ea7037f 100644--- a/cli/package.json+++ b/cli/package.json@@ -1,11 +1,11 @@{"name": "@immich/cli",- "version": "2.0.7",+ "version": "2.0.8","description": "Command Line Interface (CLI) for Immich","type": "module","exports": "./dist/index.js","bin": {- "immich": "./dist/index.js"+ "immich": "dist/index.js"},"license": "MIT","keywords": [@@ -51,7 +51,7 @@},"repository": {"type": "git",- "url": "github:immich-app/immich",+ "url": "git+https://github.com/immich-app/immich.git","directory": "cli"},"engines": {