Skip to content

Commit

Permalink
fix: lerna publish (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
hershmire authored Mar 5, 2024
1 parent 76aed9e commit fb1adf5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release_library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb1adf5

Please sign in to comment.