Skip to content

Commit

Permalink
Merge pull request #9 from smartlyio/feat/monorepo-setup-with-lerna
Browse files Browse the repository at this point in the history
Remove npm tagging
  • Loading branch information
ledancs authored Aug 30, 2024
2 parents 852d854 + 3bccb39 commit 82e2f6b
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/release_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,8 @@ jobs:
git config --global user.email "andres.ledesma@smartly.io"
git config --global user.name "Andres Ledesma"
# Bump package version
# Use tag latest
- name: Bump release version
if: startsWith(github.event.inputs.release-type, 'pre') != true
run: |
echo "NEW_VERSION=$(npm --no-git-tag-version version $RELEASE_TYPE)" >> $GITHUB_ENV
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}

# Bump package pre-release version
# Use tag beta for pre-release versions
- name: Bump pre-release version
if: startsWith(github.event.inputs.release-type, 'pre')
run: |
echo "NEW_VERSION=$(npm --no-git-tag-version --preid=beta version $RELEASE_TYPE
echo "RELEASE_TAG=beta" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}

- name: Bump up version with lerna
run: lerna version ${{ env.RELEASE_TAG }} --yes
- name: Bump up up version
run: lerna version ${{ env.github.event.inputs.release-type }} --yes

# Publish version to public repository
- name: Publish
Expand Down

0 comments on commit 82e2f6b

Please sign in to comment.