Commit 4171046
Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master (#2426)
* 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.
* 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.
* 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.
* 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.
* Merge silently into the archive branch
We shouldn't ever have conflicts here, so we can just auto-merge
* 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.
* 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.
* 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
* 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!
* 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
* 12.0.2
Co-authored-by: Carl-Erik Kopseng <carlerik@gmail.com>1 parent c80a726 commit 4171046
2,582 files changed
Lines changed: 55 additions & 2598505 deletions
File tree
- docs
- _releases
- latest
- examples
- v1.17.6
- v1.17.7
- v10.0.0
- examples
- v10.0.1
- examples
- v11.0.0
- examples
- v11.1.0
- examples
- v11.1.1
- examples
- v11.1.2
- examples
- v12.0.0
- examples
- v12.0.1
- examples
- v2.0.0
- v2.1.0
- v2.2.0
- v2.3.0
- v2.3.1
- v2.3.2
- v2.3.3
- v2.3.4
- v2.3.5
- v2.3.6
- v2.3.7
- v2.3.8
- v2.4.0
- v2.4.1
- v3.0.0
- v3.1.0
- v3.2.0
- v3.2.1
- v3.3.0
- v4.0.0
- v4.0.1
- v4.0.2
- v4.1.0
- v4.1.1
- v4.1.2
- v4.1.3
- v4.1.4
- v4.1.5
- v4.1.6
- v4.2.0
- v4.2.1
- v4.2.2
- v4.2.3
- v4.3.0
- v4.4.0
- v4.4.10
- v4.4.1
- v4.4.2
- v4.4.3
- v4.4.4
- v4.4.5
- v4.4.6
- v4.4.7
- v4.4.8
- v4.4.9
- v4.5.0
- v5.0.10
- v5.0.1
- v5.0.2
- v5.0.3
- v5.0.4
- v5.0.5
- v5.0.6
- v5.0.7
- v5.0.8
- v5.0.9
- v5.1.0
- v6.0.0
- v6.0.1
- v6.1.0
- v6.1.1
- v6.1.2
- v6.1.3
- v6.1.4
- v6.1.5
- v6.1.6
- v6.2.0
- v6.3.0
- v6.3.1
- v6.3.2
- v6.3.3
- v6.3.4
- v6.3.5
- v7.0.0
- v7.1.0
- v7.1.1
- v7.2.0
- v7.2.1
- v7.2.2
- v7.2.3
- v7.2.4
- v7.2.5
- v7.2.6
- v7.2.7
- v7.3.0
- v7.3.1
- v7.3.2
- v7.4.1
- v7.4.2
- v7.5.0
- v8.0.0
- examples
- v8.0.1
- examples
- v8.0.2
- examples
- v8.0.3
- examples
- v8.0.4
- examples
- v8.1.0
- examples
- v8.1.1
- examples
- v9.0.0
- examples
- v9.0.1
- examples
- v9.0.2
- examples
- v9.0.3
- examples
- v9.1.0
- examples
- v9.2.0
- examples
- v9.2.1
- examples
- v9.2.2
- examples
- v9.2.3
- examples
- v9.2.4
- examples
- releases
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | | - | |
12 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 17 deletions
This file was deleted.
This file was deleted.
0 commit comments