Debian Codegraph @

tests/selenium/wdio-mediawiki/CONTRIBUTING.md

raw symbols SCIP
1 # Contribute to wdio-mediawiki
2
3 ## Release process
4
5 1. Look for any outstanding bugs.
6 Especially (unreleased) regressions should be addressed before a release.
7 <https://phabricator.wikimedia.org/tag/mediawiki-core-tests>
8
9 2. Create or reset your `release` branch to the latest head of the repository
10
11 ```bash
12 # From mediawiki-core
13 git remote update && git checkout -B release -t origin/HEAD
14 ```
15
16 3. Add release notes to [CHANGELOG.md](./CHANGELOG.md).
17 Copy the output of the following as your starting point, and remove any entries that don't affect
18 the public API. As well as remove prefixes that are redundant within the context of this package
19 (no "selenium:" or "wdio-mediawiki:"). Entries that add, remove, or change public methods should
20 be their own bullet point, start with the class or module file that they are a part of,
21 for example "Util: Added `foo()` method".
22
23 ```bash
24 # From tests/selenium/wdio-mediawiki/
25 export LAST_RELEASE=$(git log --format='%h' --grep='wdio-mediawiki: Release' -n1 .)
26 git log --format='* %s.' --no-merges --reverse "${LAST_RELEASE}...HEAD" . | sort | grep -vE '^\* (build|eslint|docs?|tests?):'
27 ```
28
29 4. Ensure the [README.md](./README.md) documentation is up-to-date with any methods that
30 were added, changed, or removed.
31
32 5. Set the next release version in [package.json](./package.json).
33
34 6. Run `npm install` in the root of MediaWiki Core to update `package-lock.json` file.
35 Make sure the machine has the same versions of Node.js and npm as CI.
36
37 ```bash
38 # From mediawiki-core
39 npm install
40 ```
41
42 7. Stage and save your commit, and submit it to Gerrit:
43
44 ```bash
45 # From mediawiki-core
46 git add -p
47 git commit -m "wdio-mediawiki: Release X.Y.Z"
48 git review
49 ```
50
51 8. After the release commit has been merged by CI, perform the actual release:
52
53 ```bash
54 # From tests/selenium/wdio-mediawiki/
55 npm publish
56 ```