-
-
Notifications
You must be signed in to change notification settings - Fork 769
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’ll 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
Commits on Jan 24, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for fe65826 - Browse repository at this point
Copy the full SHA fe65826View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 05341dc - Browse repository at this point
Copy the full SHA 05341dcView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 63e1926 - Browse repository at this point
Copy the full SHA 63e1926View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 176142e - Browse repository at this point
Copy the full SHA 176142eView commit details -
Merge silently into the archive branch
We shouldn't ever have conflicts here, so we can just auto-merge
Configuration menu - View commit details
-
Copy full SHA for 571c957 - Browse repository at this point
Copy the full SHA 571c957View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 8677abf - Browse repository at this point
Copy the full SHA 8677abfView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 614f084 - Browse repository at this point
Copy the full SHA 614f084View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 34a8324 - Browse repository at this point
Copy the full SHA 34a8324View commit details -
Stringing commands together like this makes it so if the push doesn't work, we keep going, which we don't want!
Configuration menu - View commit details
-
Copy full SHA for d1a3c4a - Browse repository at this point
Copy the full SHA d1a3c4aView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for d0c9052 - Browse repository at this point
Copy the full SHA d0c9052View commit details
Commits on Jan 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c58f96b - Browse repository at this point
Copy the full SHA c58f96bView commit details