Skip to content

Commit

Permalink
chore: use pnpm version from root package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ainsel committed Dec 13, 2024
1 parent e8ced5b commit 2f5865c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/block-mark-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ on:
required: false
default: 'pnpm-lock.yaml'
#
# PNPM settings
#
pnpm-version:
description: |
Version of pnpm to install.
type: string
required: false
default: 'latest'
#
# NPM registry settings
#
npmrc-config:
Expand Down Expand Up @@ -174,7 +165,7 @@ jobs:
with:
run: |
NPM_PKG_VERSION="$(cat "${GITHUB_WORKSPACE}/${BLOCK_PATH}/package.json" | jq --raw-output '.version')"
PNPM_VERSION="$(cat "${GITHUB_WORKSPACE}/${BLOCK_PATH}/package.json" | jq --raw-output 'if .packageManager and (.packageManager | length > 0) then .packageManager | split("@")[1] else empty end')"
PNPM_VERSION="$(cat "${GITHUB_WORKSPACE}/package.json" | jq --raw-output 'if .packageManager and (.packageManager | length > 0) then .packageManager | split("@")[1] else empty end')"
ghwa_set_output npm-pkg-version "${NPM_PKG_VERSION}"
ghwa_set_output pnpm-version "${PNPM_VERSION}"
Expand Down

0 comments on commit 2f5865c

Please sign in to comment.