1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00: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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Run API generation - name: Run API generation
run: cd server && npm ci && npm run api:generate run: npm --prefix server run api:generate
- name: Find file changes - name: Find file changes
uses: tj-actions/verify-changed-files@v13.1 uses: tj-actions/verify-changed-files@v13.1
id: verify-changed-files id: verify-changed-files
@ -158,18 +158,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Install server dependencies - name: Install server dependencies
run: | run: npm --prefix server ci
cd server
npm ci
- name: Run existing migrations - name: Run existing migrations
run: | run: npm --prefix server run typeorm:migrations:run
cd server
npm run typeorm:migrations:run
- name: Generate new migrations - name: Generate new migrations
continue-on-error: true continue-on-error: true
run: | run: npm --prefix server run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
cd server
npm run typeorm:migrations:generate ./libs/infra/src/migrations/TestMigration
- name: Find file changes - name: Find file changes
uses: tj-actions/verify-changed-files@v13.1 uses: tj-actions/verify-changed-files@v13.1
id: verify-changed-files id: verify-changed-files