Skip to content

Commit

Permalink
Made installation of dependencies only if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcloudquery committed Jul 31, 2024
1 parent bcb22b2 commit eccb770
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
node-version: '18.18.0'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Get package name and current version from package.json
id: get_package_info
run: |
Expand All @@ -47,6 +44,10 @@ jobs:
echo "::set-output name=version_changed::false"
fi
- name: Install dependencies
if: steps.check_version.outputs.version_changed == 'true'
run: npm install

- name: Run tests
if: steps.check_version.outputs.version_changed == 'true'
run: npm test
Expand Down

0 comments on commit eccb770

Please sign in to comment.