From 6412688cad15c92c3816bde5594ff02960387a34 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Tue, 18 Aug 2020 15:10:59 -0400 Subject: [PATCH] Fix canary builds (#1437) --- .github/workflows/canary.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 48e02abd3ac..beaf2e4609c 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -11,6 +11,11 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v2 + with: + # Fetch all history (needed for lerna / semantic release to correctly version) + fetch-depth: 0 + # pulls all tags (needed for lerna / semantic release to correctly version) + - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set up Node.js uses: actions/setup-node@master with: @@ -35,6 +40,9 @@ jobs: npx lerna bootstrap --no-ci - name: Publish - run: npx lerna publish --canary --dist-tag canary --preid canary --yes + run: npx lerna publish --canary --yes env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + # Push new version tag to github + - run: git push --tags