From cbb6b79d11766cf127ffdb4e4e52c602ed270606 Mon Sep 17 00:00:00 2001 From: Daniel Barnes Date: Wed, 1 Feb 2023 18:50:13 -0800 Subject: [PATCH] tweak release workflow again --- .github/workflows/test-deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 9bfe16943..0ae928ffa 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -105,11 +105,9 @@ jobs: registry-url: https://registry.npmjs.org - run: npm install - run: | - if [$GITHUB_RUN_ATTEMPT == 1 ]; then - npm ${{ inputs.release && 'publish' || 'publish --dry-run' }} - else - echo "Job being re-run, skipping" - fi + VERSION=$(jq -r .version < package.json) + npm install --dry-run @dvcorg/cml@$VERSION || + npm ${{ inputs.release && 'publish' || 'publish --dry-run' }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Step required "thanks" to https://github.com/actions/runner-images/issues/6283 @@ -123,7 +121,8 @@ jobs: cp build/cml-macos{-x64,} - if: inputs.release run: - find build -type f | xargs gh release upload "$GITHUB_REF_NAME" + find build -type f | xargs gh release upload + "${GITHUB_REF_NAME#bump/}" env: GITHUB_TOKEN: ${{ github.token }} images: