From 736c5852b7b0129ac72ad2f390be240b1d685a94 Mon Sep 17 00:00:00 2001 From: Dafnik Date: Tue, 11 Apr 2023 17:56:23 +0200 Subject: [PATCH 1/2] feat: add --frozen-lockfile to pnpm install command --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index f3da01f..724d145 100644 --- a/action.yml +++ b/action.yml @@ -54,9 +54,9 @@ runs: - name: Run pnpm install if: "${{ inputs.install }}" shell: bash - run: pnpm install + run: pnpm install --frozen-lockfile - name: Run pnpm install --ignore-scripts if: "${{ inputs.install-ignore-scripts }}" shell: bash - run: pnpm install --ignore-scripts + run: pnpm install --frozen-lockfile --ignore-scripts From e27d1f5ff2e2f7cdacd7f29df62c7fe434506556 Mon Sep 17 00:00:00 2001 From: Dafnik Date: Tue, 11 Apr 2023 18:00:41 +0200 Subject: [PATCH 2/2] fix: running install also if not wanted --- action.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 724d145..6202cb6 100644 --- a/action.yml +++ b/action.yml @@ -17,11 +17,11 @@ inputs: install: description: "Runs pnpm install" required: false - default: false + default: 'false' install-ignore-scripts: description: "Runs pnpm install --ignore-scripts" required: false - default: false + default: 'false' runs: using: "composite" @@ -52,11 +52,11 @@ runs: ${{ runner.os }}-pnpm-store- - name: Run pnpm install - if: "${{ inputs.install }}" + if: "${{ inputs.install == 'true' }}" shell: bash run: pnpm install --frozen-lockfile - name: Run pnpm install --ignore-scripts - if: "${{ inputs.install-ignore-scripts }}" + if: "${{ inputs.install-ignore-scripts == 'true' }}" shell: bash run: pnpm install --frozen-lockfile --ignore-scripts