Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master #2426

Merged
merged 11 commits into from Jan 28, 2022

Commits on Jan 24, 2022

  1. Remove release archives from master

    These archives made it difficult to find things in the GitHub interface,
    and take up a lot of space in a checked-out repo for something that is
    not useful to most people checking out the repository.
    
    The main purpose of these archives is to make old versions and
    documentation available on the Sinon website that is run out of this
    repo. This can be supported by using a separate branch for website
    releases, and to maintain the archives.
    
    Following this commit, the `npm version` scripts will be updated to
    automatically handle archiving the releases in the new releases branch
    and keeping it up to date with master.
    
    Also remove the directories we removed from .prettierignore, since they
    don't exist any more.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    fe65826 View commit details
    Browse the repository at this point in the history
  2. Update npm version scripts to manage new releases branch

    This updates the `postversion.sh` script to merge master into the new
    `releases` branch and then copy and commit the version archives there,
    instead of into master, so that the archives aren't cluttering up the
    master branch unnecessarily.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    05341dc View commit details
    Browse the repository at this point in the history
  3. Move changelog updates into version script

    Previously we were updating the changelog and doing other auxiliary
    version bumps in the post-version script, which meant they weren't
    included in the tagged release commit, and required a followup commit.
    
    This moves the version-bumping changes into a new `version.sh` script,
    so that those changes show up in the tagged version commit.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    63e1926 View commit details
    Browse the repository at this point in the history
  4. Don't ignore changelogs in prettier

    We were manually running prettier on CHANGELOG.md during release but
    ignoring it in .prettierrc - this may have been a holdover from before
    Prettier had the proseWrap option, which would have wreacked havoc with
    the changelog, but the current version handles things just fine.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    176142e View commit details
    Browse the repository at this point in the history
  5. Merge silently into the archive branch

    We shouldn't ever have conflicts here, so we can just auto-merge
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    571c957 View commit details
    Browse the repository at this point in the history
  6. Tweak changelog.md generation to be more compatible

    $(<CHANGES.md) wasn't working on my machine, I think because it's a
    bash-ism, and my machine was running it under sh. I also took the chance
    to do something more useful than just `cat` by removing the double
    header that was previously on this page.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    8677abf View commit details
    Browse the repository at this point in the history
  7. Fail if we cancel CHANGES.md

    Also make version.sh a bash script like the others - this would have
    fixed the update-change-log-page script, in retrospect, but I think it's
    worth getting rid of the double header anyway.
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    614f084 View commit details
    Browse the repository at this point in the history
  8. Clean up copied directories

    Otherwise when we switch back to the source branch we'll have these
    files left dangling, which was what we were trying to avoid in the first
    place
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    34a8324 View commit details
    Browse the repository at this point in the history
  9. Don't defeat set -e

    Stringing commands together like this makes it so if the push doesn't
    work, we keep going, which we don't want!
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    d1a3c4a View commit details
    Browse the repository at this point in the history
  10. Temporary commit to make publish a dry-run

    This makes the script work on my machine, since I of course can't
    actually publish to sinon's npm package
    
    Also skip postbuild because chrome tests aren't working on my machine
    and `npm install` doesn't fix it
    cincodenada committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    d0c9052 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2022

  1. 12.0.2

    fatso83 committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    c58f96b View commit details
    Browse the repository at this point in the history