Skip to content

Commit

Permalink
fix: fixes Compile assets not respecting package manager when using n…
Browse files Browse the repository at this point in the history
…pm (#90)

* fix: fixes Compile assets not respecting package manager when using npm

* chore: remove unnecessary env var

* chore: fix non working syntax
  • Loading branch information
luislard authored Nov 28, 2023
1 parent 8eac3b4 commit 20e66aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
TAG_NAME: '' # we'll override if the push is for tag
TAG_BRANCH_NAME: '' # we'll override if the push is for tag
LOCK_FILE: '' # we'll override after checking files
PACKAGE_MANAGER: 'yarn' # we'll override based on env/inputs
NO_CHANGES: '' # we'll override if no changes to commit
steps:
- name: Checkout
Expand Down Expand Up @@ -167,7 +166,7 @@ jobs:
run: ${{ format('{0} {1}', inputs.PACKAGE_MANAGER, env.ARGS) }}

- name: Compile assets
run: ${{ ((env.PACKAGE_MANAGER == 'yarn') && 'yarn') || 'npm run' }} ${{ env.COMPILE_SCRIPT }}
run: ${{ inputs.PACKAGE_MANAGER == 'yarn' && 'yarn' || 'npm run' }} ${{ env.COMPILE_SCRIPT }}

- name: Git add, commit, push
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests-unit-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
cache: ${{ inputs.PACKAGE_MANAGER }}

- name: Install dependencies
run: ${{ ((inputs.PACKAGE_MANAGER == 'yarn') && 'yarn') || 'npm install' }}
run: ${{ inputs.PACKAGE_MANAGER == 'yarn' && 'yarn' || 'npm install' }}

- name: Run Jest
run: ./node_modules/.bin/jest ${{ inputs.JEST_ARGS }}

0 comments on commit 20e66aa

Please sign in to comment.