Skip to content

Commit

Permalink
fix(release): cleanup leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed May 15, 2020
1 parent 699425a commit 3d44a32
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,7 @@ jobs:

steps:
- name: Checkout
if: github.ref == 'refs/heads/master'
uses: actions/checkout@v2
with:
# TL;DR: On master branch we check out the code using a depth of 50 commits.
# This is necessary to allow Changesets to properly detect the latest tag in order
# to determine the new versions.
# See also related issue from Lerna (https://github.com/lerna/lerna/issues/1769).
# To amend to that, we force a checkout with a bigger depth (like 50).
# Note: this means that if we have merged >50 PRs since the last release,
# the canary will fail again for the reasons above.
# We could set `fetch-depth: 0`, but that would cause the entire history
# to be cloned. Using 50 seems like a good balance to start with.
fetch-depth: 50

# https://github.com/actions/checkout#fetch-all-tags
- name: Fetch all tags (for canary releases)
if: github.ref == 'refs/heads/master'
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
Expand Down

1 comment on commit 3d44a32

@vercel
Copy link

@vercel vercel bot commented on 3d44a32 May 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.