Skip to content

Commit

Permalink
ci: Fix release script to use Lerna to version and publish (#166)
Browse files Browse the repository at this point in the history
* ci: Fix release script to use Lerna to version and publish

---------

Signed-off-by: Antonette Caldwell <[email protected]>
  • Loading branch information
nebula-aac authored Oct 30, 2023
1 parent 55bfc25 commit c206c69
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,16 @@ jobs:
- name: Publish to npm
run: |
- run: npm publish --verbose
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor}}@users.noreply.github.com"
# git config user.name "${{ github.actor }}"
# git config user.email "${{ github.actor}}@users.noreply.github.com"
# if [ ${{ github.base_ref }} = development ]; then
# HUSKY=0 npx lerna version --no-private --conventional-commits --conventional-prerelease --preid beta --yes
# else
# HUSKY=0 npx lerna version --no-private --conventional-commits --yes
# fi
if [ ${{ github.base_ref }} = development ]; then
HUSKY=0 npx lerna version --no-private --conventional-commits --conventional-prerelease --preid beta --yes
else
HUSKY=0 npx lerna version --no-private --conventional-commits --yes
fi
# HUSKY=0 npx lerna publish from-git --yes
HUSKY=0 npx lerna publish from-git --no-private --yes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit c206c69

Please sign in to comment.