-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* beta mode * add back yarn updates and group them by dev or prod dependency --------- Co-authored-by: Aaron <[email protected]>
- Loading branch information
Showing
12 changed files
with
113 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"mode": "exit", | ||
"tag": "beta", | ||
"initialVersions": { | ||
"@celo/odis-identifiers": "0.0.1", | ||
"@celo/phone-number-privacy-combiner": "3.3.1", | ||
"@celo/phone-number-privacy-common": "3.1.0", | ||
"@celo/phone-number-privacy-monitor": "3.0.1", | ||
"@celo/phone-number-privacy-signer": "3.1.0", | ||
"@celo/encrypted-backup": "5.0.4", | ||
"@celo/identity": "5.0.4" | ||
}, | ||
"changesets": [] | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn pretty-quick --staged --pattern '**/*.+(ts|js)' | ||
|
||
bash scripts/prereleasecheck.sh |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
bash scripts/prereleasecheck.sh |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Beta Workflow steps | ||
# 0. Enter any random branch name | ||
echo "Enter a branch name" | ||
read branch_name | ||
# 1. create a prerelease/random branch | ||
git branch prerelease/$branch_name | ||
# 2. check it out | ||
git checkout prerelease/$branch_name | ||
# 3. enter pre mode (beta) | ||
yarn cs pre enter beta | ||
# 4. commit | ||
git add .changeset/pre.json | ||
git commit -am "enter beta mode" | ||
# 5. push | ||
git push origin prerelease/$branch_name | ||
# 6. githhub action will automatically trigger and open a Version packages (beta) PR against the prerelease/random branch | ||
echo "Commit to this prerelease/$branch_name and push up will trigger the github action to open a Version packages (beta) PR" | ||
# 7. merge that PR to publish or Push up more commits to update | ||
echo "Merge the Version Packages (beta) PR to publish a beta" | ||
# a. if you do merge/publish you will need to add more changesets to initiate a new beta being published | ||
# 8. repeat 7 if wanted | ||
# 9. when ready to exit pre mode. `yarn beta-exit` | ||
echo "when complete with beta mode, run `yarn beta-exit`" | ||
echo "IMPORTANT: once you exit pre mode you should open a PR to merge your branch into main." | ||
echo "DONT MERGE the Version Packages PR which is not Beta into prerelease/$branch_name branch" | ||
# 11. open PR for prerelease into main | ||
# NOTE: if you want to exit pre mode and not publish a beta, you can run `yarn beta-exit --no-publis | ||
# TODO right now if you merge the changeset-prerelease Version Packages PR into its BASE it might be possible to end up in a state where pre mode is exited and you merge version packages in and end up pubblishing a regular package | ||
exit 0 |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
BRANCH="$(git rev-parse --abbrev-ref HEAD)" | ||
|
||
# Ensure that its not possible to commit to a prerelease branch without a pre.json file | ||
if [[ $BRANCH == prerelease* ]]; then | ||
echo "checking for pre.json" | ||
PRE_FILE=.changeset/pre.json | ||
if test -f "$PRE_FILE"; then | ||
echo "$PRE_FILE exists." | ||
else | ||
echo "$PRE_FILE does not exist. Run yarn beta-enter to create it." | ||
exit 1 | ||
fi | ||
fi |
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