-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Rename more
main
s to 3.x-stable
s
- Loading branch information
Showing
6 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 3.x-stable | ||
|
||
env: | ||
NODE_VERSION: 20.x | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,16 +78,16 @@ Change directory to the newly created dir `jquery-migrate/`: | |
$ cd jquery-migrate | ||
``` | ||
|
||
Add the jQuery Migrate `main` as a remote (e.g. `upstream`): | ||
Add the jQuery Migrate `3.x-stable` as a remote (e.g. `upstream`): | ||
|
||
```bash | ||
$ git remote add upstream [email protected]:jquery/jquery-migrate.git | ||
``` | ||
|
||
Get in the habit of pulling in the "upstream" main to stay up to date as jQuery Migrate receives new commits: | ||
Get in the habit of pulling in the "upstream" `3.x-stable` to stay up to date as jQuery Migrate receives new commits: | ||
|
||
```bash | ||
$ git pull upstream main | ||
$ git pull upstream 3.x-stable | ||
``` | ||
|
||
Install the necessary dependencies: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ var releaseVersion, | |
prompt = enquirer.prompt, | ||
|
||
repoURL = "[email protected]:jquery/jquery-migrate.git", | ||
branch = "main", | ||
branch = "3.x-stable", | ||
|
||
// Windows needs the .cmd version but will find the non-.cmd | ||
// On Windows, also ensure the HOME environment variable is set | ||
|
@@ -211,7 +211,7 @@ async function publishToNPM( next ) { | |
|
||
function setNextVersion( next ) { | ||
updateSourceVersion( nextVersion ); | ||
updatePackageVersion( nextVersion, "main" ); | ||
updatePackageVersion( nextVersion, "3.x-stable" ); | ||
git( [ "commit", "-a", "--no-verify", "-m", "Updating the source version to " + nextVersion ], | ||
next ); | ||
} | ||
|
@@ -281,7 +281,7 @@ function updateReadmeVersion() { | |
} | ||
|
||
function setBlobVersion( s, v ) { | ||
return s.replace( /\/blob\/(?:(\d+\.\d+[^\/]+)|main)/, "/blob/" + v ); | ||
return s.replace( /\/blob\/(?:(\d+\.\d+[^\/]+)|3.x-stable)/, "/blob/" + v ); | ||
} | ||
|
||
function writeJsonSync( fname, json ) { | ||
|