Skip to content

Commit

Permalink
use github head ref instead of HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeal-eth committed Sep 29, 2021
1 parent 1f16cc3 commit 28b3f58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ jobs:

# publish
- run: git config --global user.email "[email protected]" && git config --global user.name "Synthetix CI"
- run: npx lerna version 0.0.0-$(git rev-parse --short HEAD) --exact --no-push -y
- run: npx lerna publish from-package --npm-tag dev --skip-git -y
- run: git fetch origin ${{ github.head_ref }}
- run: echo $(git rev-parse --short origin/${{ github.head_ref }})
#- run: npx lerna version 0.0.0-$(git rev-parse --short origin/${{ github.head_ref }}) --exact --no-push -y
- run: npx lerna exec npm version 0.0.0-$(git rev-parse --short origin/${{ github.head_ref }})
- run: npx lerna exec npm publish -- --tag dev
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 28b3f58

Please sign in to comment.