1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

ci: simplify server npm steps (#2352)

This commit is contained in:
Jason Rasmussen 2023-04-28 22:10:01 -04:00 committed by GitHub
parent b21c99eb12
commit 78de189d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run API generation
run: cd server && npm ci && npm run api:generate
run: npm --prefix server run api:generate
- name: Find file changes
uses: tj-actions/verify-changed-files@v13.1
id: verify-changed-files
@ -158,18 +158,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install server dependencies
run: |
cd server
npm ci
run: npm --prefix server ci
- name: Run existing migrations
run: |
cd server
npm run typeorm:migrations:run
run: npm --prefix server run typeorm:migrations:run
- name: Generate new migrations
continue-on-error: true
run: |
cd server
npm run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
run: npm --prefix server run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
- name: Find file changes
uses: tj-actions/verify-changed-files@v13.1
id: verify-changed-files