Skip to content

Commit

Permalink
ci: add npm ci to migrate workflow [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed May 18, 2023
1 parent c904d90 commit ef373c2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/nx-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
node-version: ${{ matrix.node_version }}
cache: 'npm'

- name: Setup Git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Install dependencies
run: npm ci

- name: Check if @nx/workspace is outdated
id: nx-workspace-outdated
Expand Down Expand Up @@ -58,6 +56,12 @@ jobs:
if: steps.nx-workspace-has-migrations.outputs.has_migrations == 'true'
run: npx nx migrate --run-migrations

- name: Setup Git
if: steps.nx-workspace-outdated.outputs.outdated == 'true'
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Commit changes
if: steps.nx-workspace-outdated.outputs.outdated == 'true'
run: |
Expand Down

0 comments on commit ef373c2

Please sign in to comment.