From fb1adf5605edb3383fa1068db41f87d6166a7a05 Mon Sep 17 00:00:00 2001 From: Eddie Date: Tue, 5 Mar 2024 10:17:26 -0700 Subject: [PATCH] fix: lerna publish (#43) --- .github/workflows/release_library.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release_library.yml b/.github/workflows/release_library.yml index 99a9c7a..3a8d7c1 100644 --- a/.github/workflows/release_library.yml +++ b/.github/workflows/release_library.yml @@ -68,6 +68,7 @@ on: env: NODE_VERSION: ${{ inputs.NODE_VERSION }} + LERNA_DEFAULT_ARGS: --exact --concurrency 1 --yes --conventional-commits --create-release github --allow-branch '*' jobs: release: @@ -108,7 +109,7 @@ jobs: - name: Test if: inputs.ENABLE_TESTING && inputs.ENABLE_COVERAGE run: yarn test:cov - + - name: Upload coverage to Coveralls if: inputs.ENABLE_TESTING && inputs.ENABLE_COVERAGE uses: coverallsapp/github-action@v2.2.0 @@ -180,20 +181,18 @@ jobs: - name: Publish to @latest dist-tag if: github.ref == 'refs/heads/main' && inputs.IS_MONOREPO run: | - echo lerna publish $LERNA_DEFAULT_ARGS --conventional-graduate - yarn lerna publish $LERNA_DEFAULT_ARGS --conventional-graduate + echo lerna publish ${{ env.LERNA_DEFAULT_ARGS }} --conventional-graduate + yarn lerna publish ${{ env.LERNA_DEFAULT_ARGS }} --conventional-graduate env: GH_TOKEN: ${{ steps.get-workflow-token.outputs.token }} - LERNA_DEFAULT_ARGS: --exact --concurrency 1 --yes --conventional-commits --create-release github --allow-branch "*" - name: Publish to a prerelease dist-tag if: github.ref != 'refs/heads/main' && inputs.IS_MONOREPO run: | - echo lerna publish $LERNA_DEFAULT_ARGS --conventional-prerelease --dist-tag ${GITHUB_REF##*/} --preid ${GITHUB_REF##*/} - yarn lerna publish $LERNA_DEFAULT_ARGS --conventional-prerelease --dist-tag ${GITHUB_REF##*/} --preid ${GITHUB_REF##*/} + echo lerna publish ${{ env.LERNA_DEFAULT_ARGS }} --conventional-prerelease --dist-tag ${GITHUB_REF##*/} --preid ${GITHUB_REF##*/} + yarn lerna publish ${{ env.LERNA_DEFAULT_ARGS }} --conventional-prerelease --dist-tag ${GITHUB_REF##*/} --preid ${GITHUB_REF##*/} env: GH_TOKEN: ${{ steps.get-workflow-token.outputs.token }} - LERNA_DEFAULT_ARGS: --exact --concurrency 1 --yes --conventional-commits --create-release github --allow-branch "*" notification: if: always() && inputs.ENABLE_SLACK_NOTIFICATION