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

chore: add release scripts #93

Merged
merged 12 commits into from
Apr 18, 2022
Merged

chore: add release scripts #93

merged 12 commits into from
Apr 18, 2022

Conversation

jye-sf
Copy link
Contributor

@jye-sf jye-sf commented Apr 12, 2022

One step closer to a 1-button release process.
The remaining work involves git automation around branch protection, pushing the actual changes to the remote, and changelog generation.

@jye-sf
Copy link
Contributor Author

jye-sf commented Apr 12, 2022

The current general release process for our repos will be:

// Version update
yarn release:version

// github related tasks
git push origin <branch>
git push origin <tag>

// Publish
yarn release:publish

Github related tasks require unlocking and re-locking branch protections. Will look into having CircleCI handle that.

@jye-sf
Copy link
Contributor Author

jye-sf commented Apr 13, 2022

@jye-sf jye-sf requested a review from nolanlawson April 13, 2022 03:58
@jye-sf
Copy link
Contributor Author

jye-sf commented Apr 13, 2022

With the CircleCI script, our general release process should now be:

// Version update
yarn release:version

// github related tasks
git push origin <branch>
git push origin <tag>

// Manually create release with release notes

CircleCI should now handle the publish.

@jye-sf
Copy link
Contributor Author

jye-sf commented Apr 13, 2022

Work to automate changelog generation and release notes will be done in a separate PR.

package.json Outdated
"test": "nyc mocha"
"test": "nyc mocha",
"release:version": "npm version",
"release:publish:ci": "npm publish --registry=https://registry.npmjs.org --dry-run"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove the --dry-run tag AFTER review for safety.

@jye-sf jye-sf merged commit 9c582b1 into master Apr 18, 2022
@jye-sf jye-sf deleted the jye/streamline-release branch April 18, 2022 07:20
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.

2 participants