From 28b3f58703a551e37b7ea804e74d002be2279e62 Mon Sep 17 00:00:00 2001 From: Daniel Beal Date: Tue, 28 Sep 2021 22:40:58 -0700 Subject: [PATCH] use github head ref instead of HEAD --- .github/workflows/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4dd4e1b45..ef7fb0506 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,10 @@ jobs: # publish - run: git config --global user.email "ci@cc.snxdao.io" && 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 }}