Skip to content

Commit

Permalink
fixing so determine lockfile finds the correct lockfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ramykl committed Dec 28, 2023
1 parent 8a85a24 commit 935a545
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .circleci/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ jobs:
name: node/default
steps:
- checkout
- run:
name: Remove other lock files
command: |
rm ~/project/sample/package-lock.json
rm ~/project/sample/yarn.lock
- node/install-packages:
pkg-manager: pnpm
cache-version: pnpm-v1
Expand Down
30 changes: 30 additions & 0 deletions src/jobs/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,36 @@ executor:
steps:
- checkout
- steps: << parameters.setup >>
- when:
condition:
and:
- equal: [ npm, << parameters.pkg-manager >> ]
steps:
- run:
name: Remove other lock files
command: |
rm ~/project/sample/pnpm-lock.yaml
rm ~/project/sample/yarn.lock
- when:
condition:
and:
- equal: [ pnpm, << parameters.pkg-manager >> ]
steps:
- run:
name: Remove other lock files
command: |
rm ~/project/sample/package-lock.json
rm ~/project/sample/yarn.lock
- when:
condition:
and:
- equal: [ yarn, << parameters.pkg-manager >> ]
steps:
- run:
name: Remove other lock files
command: |
rm ~/project/sample/package-lock.json
rm ~/project/sample/pnpm-lock.yaml
- install-packages:
app-dir: <<parameters.app-dir>>
pkg-manager: <<parameters.pkg-manager>>
Expand Down

0 comments on commit 935a545

Please sign in to comment.