Skip to content

Commit

Permalink
feat: added new option to disable package install
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Jul 2, 2024
1 parent c5d902e commit e965baf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/lock-file-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
with:
node-version: "${{ inputs.node-version }}"
cache-prefix: "lock-file"
install-packages: "false"

- name: "Update lock file"
if: "success()"
Expand All @@ -60,7 +61,7 @@ jobs:
uses: "stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842" # v5.0.1
with:
file_pattern: "pnpm-lock.yaml"
commit_message: "chore: update lock file [ci skip]"
commit_message: "chore: updated lock file [ci skip]"
commit_user_name: "github-actions-shell"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions-shell <github-actions[bot]@users.noreply.github.com>"
5 changes: 5 additions & 0 deletions step/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ inputs:
description: "Install Bun for tests"
required: false
default: "false"
install-packages:
description: "Install npm packages"
required: false
default: "true"
skip-playwright:
description: "Skip Playwright installation"
required: false
Expand Down Expand Up @@ -160,6 +164,7 @@ runs:
run: "pnpm dlx audit-ci@${{ inputs.audit-ci-version }} --config ./audit-ci.jsonc --report-type=summary"

- name: "Install packages"
if: "inputs.install-packages == 'true'"
shell: "bash"
run: "pnpm install --frozen-lockfile --prefer-offline"
env:
Expand Down

0 comments on commit e965baf

Please sign in to comment.