From b03c0a7a6b461261ace494c564726742ac11cf11 Mon Sep 17 00:00:00 2001 From: Steve Rushby Date: Tue, 29 Oct 2024 23:06:07 +0000 Subject: [PATCH] Move the retrieval of package version from build to publish job --- .github/workflows/ci-publish-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-publish-package.yml b/.github/workflows/ci-publish-package.yml index 30cd11e..a4f36d2 100644 --- a/.github/workflows/ci-publish-package.yml +++ b/.github/workflows/ci-publish-package.yml @@ -38,10 +38,6 @@ jobs: - name: Run tests run: npm run test - - name: Extract Package Version - id: extract_version - run: echo "package_version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV - - name: Upload build artifacts id: upload_build uses: actions/upload-artifact@v4 @@ -69,6 +65,10 @@ jobs: with: node-version: '18.x' + - name: Extract Package Version + id: extract_version + run: echo "package_version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + - name: Authenticate to npm registry env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}