From a3bccd13819f0d31cc55fcc2bb1ab89a65b30777 Mon Sep 17 00:00:00 2001 From: EmandM Date: Tue, 14 May 2024 23:39:35 -0400 Subject: [PATCH] fix: Use correct logic for package version --- .github/workflows/publish.yml | 2 +- .github/workflows/update-version.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cd12219..13bdc05 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - id: variables - run: echo "version=$(npm show ts-mock-imports version)" >> $GITHUB_OUTPUT + run: echo "version=$(npm pkg get version)" >> $GITHUB_OUTPUT - run: echo "Creating release for ts-mock-imports at version ${{ steps.variables.outputs.version }}" publish-npm: diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 9c8d9d3..4ce8fce 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -41,7 +41,7 @@ jobs: echo "Running ${cmd[@]}" git push && git push --tags - echo "version_number=$(npm show ts-mock-imports version)" >> $GITHUB_OUTPUT + echo "version_number=$(npm pkg get version)" >> $GITHUB_OUTPUT - id: pack_tar run: |