From cb3fd6f9aea4c21f0d26d8f065d822430cf7bd88 Mon Sep 17 00:00:00 2001 From: Emma Date: Wed, 15 May 2024 01:29:24 -0400 Subject: [PATCH] fix: Wire variable to validation correctly (#65) --- .github/workflows/release-and-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index e0537e2..d46a922 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -20,6 +20,8 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + outputs: + npm_package_version: ${{ steps.update_version.outputs.version_number }} steps: - uses: actions/checkout@v4 with: @@ -122,5 +124,5 @@ jobs: - run: npm ci - run: npm uninstall ts-mock-imports # Ensure no contamination from existing version - - run: npm install ts-mock-imports@${{ needs.setup.outputs.npm_package_version }} + - run: npm install ts-mock-imports@${{ needs.create-release.outputs.npm_package_version }} - run: npm test