Skip to content

Commit eb8b485

Browse files
committed
fix: 🐛 Two steps fixed: check version on npm (lines 169-171): moved package_name and version to env: extract changelog (lines 203-206): moved version, package_path, and changelog_file to env:
1 parent 2818d61 commit eb8b485

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/monorepo-package-release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ jobs:
166166
167167
- name: Check version on npm
168168
if: ${{ !inputs.dry_run }}
169+
env:
170+
PKG_NAME: ${{ steps.package-config.outputs.package_name }}
171+
VERSION: ${{ steps.package-version.outputs.version }}
169172
run: |
170-
PKG_NAME="${{ steps.package-config.outputs.package_name }}"
171-
VERSION="${{ steps.package-version.outputs.version }}"
172-
173173
echo "🔍 Checking if $PKG_NAME@$VERSION already exists on NPM..."
174174
175175
if npm view "$PKG_NAME@$VERSION" version 2>/dev/null; then
@@ -200,10 +200,11 @@ jobs:
200200
- name: Extract changelog
201201
if: ${{ !inputs.dry_run }}
202202
id: changelog
203+
env:
204+
VERSION: ${{ steps.package-version.outputs.version }}
205+
PKG_PATH: ${{ steps.package-config.outputs.package_path }}
206+
CHANGELOG_FILE: ${{ steps.package-config.outputs.changelog_file }}
203207
run: |
204-
VERSION="${{ steps.package-version.outputs.version }}"
205-
PKG_PATH="${{ steps.package-config.outputs.package_path }}"
206-
CHANGELOG_FILE="${{ steps.package-config.outputs.changelog_file }}"
207208
CHANGELOG_PATH="${PKG_PATH}/${CHANGELOG_FILE}"
208209
209210
if [[ -f "$CHANGELOG_PATH" ]]; then

0 commit comments

Comments
 (0)