From 2a4cf5dda818589e60ad151e7b1ddf8ce5b806da Mon Sep 17 00:00:00 2001 From: ivegabr Date: Fri, 10 Jan 2025 18:01:48 +0100 Subject: [PATCH] fix package url --- .github/workflows/publish_npm.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml index 85e05d4..4ac4c10 100644 --- a/.github/workflows/publish_npm.yml +++ b/.github/workflows/publish_npm.yml @@ -28,9 +28,9 @@ jobs: - name: Get package.json package name and match with repository name run: | - echo PACKAGE_NAME=$(cat package.json | jq .name | cut -f2 -d"\"" | cut -f2 -d"@") >> $GITHUB_OUTPUT - echo PACKAGE_VERSION="refs/tags/v"$(cat package.json | jq .version | cut -f2 -d"\"") >> $GITHUB_OUTPUT - echo PACKAGE_REPOSITORY=$(cat package.json | jq .repository | cut -f2 -d"\"" | sed 's/:/\//' | sed 's/@/:\/\//') >> $GITHUB_OUTPUT + echo PACKAGE_NAME=$(cat package.json | jq -r .name | cut -f2 -d"\"" | cut -f2 -d"@") >> $GITHUB_OUTPUT + echo PACKAGE_VERSION="refs/tags/v"$(cat package.json | jq -r .version) >> $GITHUB_OUTPUT + echo PACKAGE_REPOSITORY=$(cat package.json | jq -r .repository.url | sed 's/git+//') >> $GITHUB_OUTPUT id: get_package_info - name: Check if package_name matches with repository name