Skip to content
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

release/0.16.0 #1119

Merged
merged 7 commits into from
Nov 20, 2020
Merged

release/0.16.0 #1119

merged 7 commits into from
Nov 20, 2020

Conversation

vanbasten17
Copy link
Contributor

@vanbasten17 vanbasten17 commented Nov 20, 2020

Description

  • Added auto-publish script (only botonic-cli autopublish fails, due to oclif, is the only one that has to be done manually at the very end) --> ts-node publish.ts
  • Auto bump to rc versions.
  • Tried all deployed versions in prod.
  • Added changelog.

@vanbasten17 vanbasten17 marked this pull request as draft November 20, 2020 08:57
scripts/publish.ts Outdated Show resolved Hide resolved
writeFileSync(jsonPath, JSON.stringify(object, null, 2) + '\n')
}

const fromEntries = (xs: [string | number | symbol, any][]) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's more clear if the argument of the function is a dictionary.
in any case, since this function is only used once and it's not clear what it does without a context, I would embed it where you use it. Btw, why not embedding the code directly within the readJson function?

const spawnProcess = async (
command: string,
args: string[] = [],
log?: { onSuccess?: any }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change any to () => void

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most times it's better to abort after a process fails to avoid mixing up too many error messages (you can leave the console.error and rethrow)
I suggest getting rid of the onSuccess and just directly calling what you calls from onSuccess after the spawnProcess (since you can always do await).
Another option would be that you pass a successMessage to spawnProcess, so that you don't need to repeat "console.log(greeen" so often

@vanbasten17
Copy link
Contributor Author

@dpinol I will refactor this script into another PR ASAP once this has been merged, as atm is not necessary for releasing the new versions.

Copy link
Contributor

@annehubtype annehubtype left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@asastre asastre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice script 👏!!

@vanbasten17 vanbasten17 marked this pull request as ready for review November 20, 2020 14:58
@vanbasten17 vanbasten17 merged commit 8310686 into master Nov 20, 2020
@vanbasten17 vanbasten17 deleted the release/0.16.0 branch November 20, 2020 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants