-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Release: migrate release process to release-it #5306
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: CI | ||
| name: Tests | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| branches: [3.x-stable] | ||
| inputs: | ||
| args: | ||
| description: "Arguments for npm run release" | ||
| required: false | ||
| default: "" | ||
| blog_url: | ||
| description: "Blog URL for the dist repo" | ||
| required: false | ||
| default: "" | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: "18.x" | ||
| registry-url: "https://registry.npmjs.org" | ||
| - name: git config | ||
| run: | | ||
| git config user.name "${GITHUB_ACTOR}" | ||
| git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
| - run: npm install -g npm | ||
| - run: npm run release -- {{ github.event.inputs.args }} | ||
| env: | ||
| BLOG_URL: ${{ github.events.inputs.blog_url }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
|
||
| - uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: changelog | ||
| path: | | ||
| changelog.md | ||
| changelog.html | ||
| - uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: google-cdn | ||
| path: cdn/unversioned/googlecdn-jquery-*.zip | ||
| - uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: microsoft-cdn | ||
| path: cdn/versioned/mscdn-jquery-*.zip |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,10 @@ | |
| .sizecache.json | ||
| yarn.lock | ||
| package-lock.json | ||
| changelog.* | ||
| /.dist | ||
| /.cdn | ||
| /cdn | ||
|
|
||
| npm-debug.log* | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| save-exact=true | ||
| access=public | ||
| provenance=true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "hooks": { | ||
| "before:init": [ | ||
| "npm run release:verify ${version} process.env.BLOG_URL", | ||
| "npm ci", | ||
| "npm run authors:check", | ||
| "npm test", | ||
| "rimraf .dist .cdn", | ||
| "git clone https://github.com/jquery/jquery-dist .dist", | ||
| "git clone https://github.com/jquery/codeorigin.jquery.com .cdn" | ||
| ], | ||
| "before:git:release": "git add -f dist/", | ||
| "after:version:bump": "sed -i 's/3.x-stable\/AUTHORS.txt/${version}\/AUTHORS.txt/' package.json", | ||
| "after:release": "./build/release/post-release.sh ${version} process.env.BLOG_URL" | ||
| }, | ||
| "git": { | ||
| "changelog": "npm run changelog -- ${from} ${to}", | ||
| "commitMessage": "Release: ${version}", | ||
| "getLatestTagFromAllRefs": true, | ||
| "requireBranch": "3.x-stable" | ||
| }, | ||
| "github": { | ||
| "release": true | ||
| }, | ||
| "npm": { | ||
| "publish": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| Authors ordered by first contribution. | ||
|
|
||
| John Resig <jeresig@gmail.com> | ||
| Gilles van den Hoven <gilles0181@gmail.com> | ||
| Michael Geary <mike@geary.com> | ||
|
|
@@ -29,7 +31,6 @@ Michael Bensoussan <mickey@seesmic.com> | |
| Louis-Rémi Babé <lrbabe@gmail.com> | ||
| Robert Katić <robert.katic@gmail.com> | ||
| Damian Janowski <damian.janowski@gmail.com> | ||
| Anton Kovalyov <anton@kovalyov.net> | ||
| Dušan B. Jovanovic <dbjdbj@gmail.com> | ||
| Earle Castledine <mrspeaker@gmail.com> | ||
| Rich Dougherty <rich@rd.gen.nz> | ||
|
|
@@ -67,11 +68,11 @@ temp01 <temp01irc@gmail.com> | |
| Colin Snover <github.com@zetafleet.com> | ||
| Jared Grippe <jared@deadlyicon.com> | ||
| Ryan W Tenney <ryan@10e.us> | ||
| Alex Sexton <AlexSexton@gmail.com> | ||
| Pinhook <contact@pinhooklabs.com> | ||
| Ron Otten <r.j.g.otten@gmail.com> | ||
| Jephte Clain <Jephte.Clain@univ-reunion.fr> | ||
| Anton Matzneller <obhvsbypqghgc@gmail.com> | ||
| Alex Sexton <AlexSexton@gmail.com> | ||
| Dan Heberden <danheberden@gmail.com> | ||
| Henri Wiechers <hwiechers@gmail.com> | ||
| Russell Holbrook <russell.holbrook@patch.com> | ||
|
|
@@ -85,9 +86,10 @@ Sylvester Keil <sylvester@keil.or.at> | |
| Brandon Sterne <bsterne@mozilla.com> | ||
| Mathias Bynens <mathias@qiwi.be> | ||
| Lee Carpenter <elcarpie@gmail.com> | ||
| Timmy Willison <4timmywil@gmail.com> | ||
| Timmy Willison <timmywil@users.noreply.github.com> | ||
| Corey Frang <gnarf37@gmail.com> | ||
| Digitalxero <digitalxero> | ||
| Anton Kovalyov <anton@kovalyov.net> | ||
| David Murdoch <david@davidmurdoch.com> | ||
| Josh Varner <josh.varner@gmail.com> | ||
| Charles McNulty <cmcnulty@kznf.com> | ||
|
|
@@ -149,7 +151,6 @@ Chris Faulkner <thefaulkner@gmail.com> | |
| Marcel Greter <marcel.greter@ocbnet.ch> | ||
| Elijah Manor <elijah.manor@gmail.com> | ||
| Daniel Chatfield <chatfielddaniel@gmail.com> | ||
| Daniel Gálvez <dgalvez@editablething.com> | ||
| Nikita Govorov <nikita.govorov@gmail.com> | ||
| Wesley Walser <waw325@gmail.com> | ||
| Mike Pennisi <mike@mikepennisi.com> | ||
|
|
@@ -160,9 +161,7 @@ Dave Riddle <david@joyvuu.com> | |
| Callum Macrae <callum@lynxphp.com> | ||
| Jonathan Sampson <jjdsampson@gmail.com> | ||
| Benjamin Truyman <bentruyman@gmail.com> | ||
| Jay Merrifield <fracmak@gmail.com> | ||
| James Huston <james@jameshuston.net> | ||
| Sai Lung Wong <sai.wong@huffingtonpost.com> | ||
| Erick Ruiz de Chávez <erickrdch@gmail.com> | ||
| David Bonner <dbonner@cogolabs.com> | ||
| Allen J Schmidt Jr <cobrasoft@gmail.com> | ||
|
|
@@ -172,8 +171,11 @@ Ismail Khair <ismail.khair@gmail.com> | |
| Carl Danley <carldanley@gmail.com> | ||
| Mike Petrovich <michael.c.petrovich@gmail.com> | ||
| Greg Lavallee <greglavallee@wapolabs.com> | ||
| Daniel Gálvez <dgalvez@editablething.com> | ||
| Sai Lung Wong <sai.wong@huffingtonpost.com> | ||
| Tom H Fuertes <TomFuertes@gmail.com> | ||
| Roland Eckl <eckl.roland@googlemail.com> | ||
| Jay Merrifield <fracmak@gmail.com> | ||
| Yiming He <yiminghe@gmail.com> | ||
| David Fox <dfoxinator@gmail.com> | ||
| Bennett Sorbo <bsorbo@gmail.com> | ||
|
|
@@ -190,17 +192,16 @@ Diego Tres <diegotres@gmail.com> | |
| Jean Boussier <jean.boussier@gmail.com> | ||
| Andrew Plummer <plummer.andrew@gmail.com> | ||
| Mark Raddatz <mraddatz@gmail.com> | ||
| Pascal Borreli <pascal@borreli.com> | ||
| Isaac Z. Schlueter <i@izs.me> | ||
| Karl Sieburg <ksieburg@yahoo.com> | ||
| Pascal Borreli <pascal@borreli.com> | ||
| Nguyen Phuc Lam <ruado1987@gmail.com> | ||
| Dmitry Gusev <dmitry.gusev@gmail.com> | ||
| Steven Benner <admin@stevenbenner.com> | ||
| Li Xudong <istonelee@gmail.com> | ||
| Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | ||
| Renato Oliveira dos Santos <ros3@cin.ufpe.br> | ||
| Frederic Junod <frederic.junod@camptocamp.com> | ||
| Tom H Fuertes <tomfuertes@gmail.com> | ||
| Mitch Foley <mitch@thefoley.net> | ||
| ros3cin <ros3@cin.ufpe.br> | ||
| Kyle Robinson Young <kyle@dontkry.com> | ||
|
|
@@ -248,7 +249,6 @@ Dan Hart <danhart@notonthehighstreet.com> | |
| Nazar Mokrynskyi <nazar@mokrynskyi.com> | ||
| Benjamin Tan <demoneaux@gmail.com> | ||
| Amit Merchant <bullredeyes@gmail.com> | ||
| Jason Bedard <jason+github@jbedard.ca> | ||
| Veaceslav Grimalschi <grimalschi@yandex.ru> | ||
| Richard McDaniel <rm0026@uah.edu> | ||
| Arthur Verschaeve <contact@arthurverschaeve.be> | ||
|
|
@@ -271,12 +271,12 @@ Jon Hester <jon.d.hester@gmail.com> | |
| Colin Frick <colin@bash.li> | ||
| Winston Howes <winstonhowes@gmail.com> | ||
| Alexander O'Mara <me@alexomara.com> | ||
| Chris Rebert <github@rebertia.com> | ||
| Bastian Buchholz <buchholz.bastian@googlemail.com> | ||
| Mu Haibao <mhbseal@163.com> | ||
| Calvin Metcalf <calvin.metcalf@gmail.com> | ||
| Arthur Stolyar <nekr.fabula@gmail.com> | ||
| Gabriel Schulhof <gabriel.schulhof@intel.com> | ||
| Chris Rebert <github@rebertia.com> | ||
| Gilad Peleg <giladp007@gmail.com> | ||
| Julian Alexander Murillo <julian.alexander.murillo@gmail.com> | ||
| Kevin Kirsche <Kev.Kirsche+GitHub@gmail.com> | ||
|
|
@@ -295,15 +295,14 @@ Christian Grete <webmaster@christiangrete.com> | |
| Tom von Clef <thomas.vonclef@gmail.com> | ||
| Liza Ramo <liza.h.ramo@gmail.com> | ||
| Joelle Fleurantin <joasqueeniebee@gmail.com> | ||
| Steve Mao <maochenyan@gmail.com> | ||
| Jon Dufresne <jon.dufresne@gmail.com> | ||
| Jae Sung Park <alberto.park@gmail.com> | ||
| Josh Soref <apache@soref.com> | ||
| Saptak Sengupta <saptak013@gmail.com> | ||
| Henry Wong <henryw4k@gmail.com> | ||
| Jun Sun <klsforever@gmail.com> | ||
| Martijn W. van der Lee <martijn@vanderlee.com> | ||
| Devin Wilson <dwilson6.github@gmail.com> | ||
| Steve Mao <maochenyan@gmail.com> | ||
| Damian Senn <jquery@topaxi.codes> | ||
| Zack Hall <zackhall@outlook.com> | ||
| Vitaliy Terziev <vitaliyterziev@gmail.com> | ||
|
|
@@ -334,6 +333,7 @@ Jordan Beland <jordan.beland@gmail.com> | |
| Henry Zhu <hi@henryzoo.com> | ||
| Nilton Cesar <niltoncms@gmail.com> | ||
| basil.belokon <basil.belokon@gmail.com> | ||
| Saptak Sengupta <saptak013@gmail.com> | ||
| Andrey Meshkov <ay.meshkov@gmail.com> | ||
| tmybr11 <tomas.perone@gmail.com> | ||
| Luis Emilio Velasco Sanchez <emibloque@gmail.com> | ||
|
|
@@ -342,18 +342,18 @@ Bert Zhang <enbo@users.noreply.github.com> | |
| Sébastien Règne <regseb@users.noreply.github.com> | ||
| wartmanm <3869625+wartmanm@users.noreply.github.com> | ||
| Siddharth Dungarwal <sd5869@gmail.com> | ||
| abnud1 <ahmad13932013@hotmail.com> | ||
| Andrei Fangli <andrei_fangli@outlook.com> | ||
| Marja Hölttä <marja.holtta@gmail.com> | ||
| abnud1 <ahmad13932013@hotmail.com> | ||
| buddh4 <mail@jharrer.de> | ||
| Hoang <dangkyokhoang@gmail.com> | ||
| Sean Robinson <sean.robinson@scottsdalecc.edu> | ||
| Wonseop Kim <wonseop.kim@samsung.com> | ||
| Pat O'Callaghan <patocallaghan@gmail.com> | ||
| JuanMa Ruiz <ruizjuanma@gmail.com> | ||
| Ahmed.S.ElAfifi <ahmed.s.elafifi@gmail.com> | ||
| Christian Oliff <christianoliff@pm.me> | ||
| Christian Wenz <christian@wenz.org> | ||
| Sean Robinson <sean.robinson@scottsdalecc.edu> | ||
| Jonathan <vanillajonathan@users.noreply.github.com> | ||
| Pierre Grimaud <grimaud.pierre@gmail.com> | ||
| Beatriz Rezener <beatrizrezener@users.noreply.github.com> | ||
|
|
@@ -366,3 +366,5 @@ Simon Legner <Simon.Legner@gmail.com> | |
| Vladimir Sitnikov <sitnikov.vladimir@gmail.com> | ||
| Anders Kaseorg <andersk@mit.edu> | ||
| Alex <aleksandrosansan@gmail.com> | ||
| Gabriela Gutierrez <gabigutierrez@google.com> | ||
| Dimitri Papadopoulos Orfanos <3234522+DimitriPapadopoulos@users.noreply.github.com> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know the number of changes looks odd, but I've confirmed that
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, and I actually made these changes long ago on purpose... This was to certify that contributions to Sizzle matter as much to jQuery as contributions to the main jQuery repo. I changed the file so that the entries are ordered by the first contribution to any of those two repositories. I'd like to preserve that. Cf. https://github.com/jquery/jquery/pull/4395/files#diff-b897336dda0579c40f3623b68eb6652ded79e206f4cf1af7ceb24b683fd46ff1 & https://github.com/jquery/jquery/pull/5113/files#diff-b897336dda0579c40f3623b68eb6652ded79e206f4cf1af7ceb24b683fd46ff1
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. Let's incorporate that into the authors script then.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It’d be interesting to see if I made any mistakes in this ordering. 😅
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've updated the authors script to clone the sizzle repo, combine the authors, sort by their first contribution, ensure they are unique by name, and then run cleanup so the sizzle repo doesn't stick around. One case that I found interesting is Timo's entry. I noticed that his old email is still in the authors, whereas both emails were in there before. I think we only need the one; the email will automatically update when Timo updates the mailmap. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "root": true, | ||
|
|
||
| "extends": "../.eslintrc-node.json" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line was accidentally removed at some point. The
mainbranch still has it.