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

Update workflow documentation in contributing page #74

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

joesnellpdx
Copy link
Collaborator

@joesnellpdx joesnellpdx commented Jun 7, 2021

Update workflow documentation on contributing page.

If this is too verbose / complicated - happy to trim per that guidance

Closes #74

@joesnellpdx joesnellpdx self-assigned this Jun 7, 2021
@joesnellpdx joesnellpdx linked an issue Jun 7, 2021 that may be closed by this pull request
@joesnellpdx
Copy link
Collaborator Author

@nicholasio

Added you to review this update. I may have gone a bit overboard. Happy to alter in any way you see fit.

@github-actions
Copy link

github-actions bot commented Jun 7, 2021

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@cypress
Copy link

cypress bot commented Jun 7, 2021



Test summary

9 0 1 0


Run details

Project @10up/component-library
Status Passed
Commit 773d7b4 ℹ️
Started Jun 10, 2021 9:18 PM
Ended Jun 10, 2021 9:18 PM
Duration 00:37 💡
OS Linux Ubuntu - 20.04
Browser Chrome 91

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2021

Codecov Report

Merging #74 (f345c2a) into develop (27199b3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #74   +/-   ##
========================================
  Coverage    66.82%   66.82%           
========================================
  Files           12       12           
  Lines          853      853           
  Branches       196      196           
========================================
  Hits           570      570           
  Misses         229      229           
  Partials        54       54           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97f3409...f345c2a. Read the comment docs.

CONTRIBUTING.md Outdated
2. Do work on the `feature` or `fix` branch. When finished, submit a pull request to merge your work back into the `develop` branch. In the PR, link to the issue (see the sidebar options on the right).
3. If there are conflicts between your branch and the code that now exists on `develop` branch, merge `develop` into your branch to reintegrate new changes and resolve any conflicts.
4. Assign a minimum on 1 reviewer to the pull request. At least one engineer must review all PRs.
5. If any updated components (`/packages`) that will need to be relased to npm exist, be sure to update package version. numbers in their respective `package.json` files.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this will work well. There might be multiple PRs making changes to the same package and merging something to develop doesn't mean it goes straight to npm. So with this workflow we might end up bumping packages version multiple times before we even release to NPM. Typically we would want to group a few PRs before releasing a new package version.

My suggestion here is to do the process of updating package versions separately once we're ready to publish a new npm release. At the feature branch stage, we only have PR authors add the CHANGELOG entries to the PR template.

Example:

  • 4 PRs are merged to develop, 2 packages updated.
  • Once we're ready to publish to npm, a maintainer/owner creates a PR against trunk from develop or a release branch, manually update the package version to the next desired version and update the CHANGELOG.md. Then publish to npm and merge into trunk.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Documentation updated. Please review @nicholasio

CONTRIBUTING.md Outdated
4. Create a pull request in github to merge the `release/[github-issue-number]-[release-number]` branch into `trunk`. Assign one reviewer to the PR. Add "Component Libarary Release [release number]" and "CHANGELOG" updates to the description.
5. Once branch is approved, all tests pass, and merged on github, switch to the `trunk` branch locally and pull the changes you just merged.
6. Verify changes are working correctly locally and, once the deploy is complete, on [Baseline](https://baseline.10up.com/components).
7. If any updated components (`/packages`) that will need to be relased to npm exist, be sure to update package version numbers in their respective `package.json` files (this should have been completed in the branch workflow - see above).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
7. If any updated components (`/packages`) that will need to be relased to npm exist, be sure to update package version numbers in their respective `package.json` files (this should have been completed in the branch workflow - see above).
7. If any updated components (`/packages`) that will need to be relased to npm exist, be sure to update package version numbers in their respective `package.json` files.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Documentation updated, please review @nicholasio

CONTRIBUTING.md Outdated
5. Once branch is approved, all tests pass, and merged on github, switch to the `trunk` branch locally and pull the changes you just merged.
6. Verify changes are working correctly locally and, once the deploy is complete, on [Baseline](https://baseline.10up.com/components).
7. If any updated components (`/packages`) that will need to be relased to npm exist, be sure to update package version numbers in their respective `package.json` files (this should have been completed in the branch workflow - see above).
8. If any package.json files need updating, be sure to commit the updates and push to the remote `trunk` branch.
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be done as part of the release branch instead of pushing to trunk directly.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Documentation updated, please review @nicholasio

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@joesnellpdx
Copy link
Collaborator Author

@nicholasio I've updated the documentation... I left some of your comments open for quick reference to the prior dialog. Please review when you have a moment. Hopefully, I have better captured your intention / workflow.

@joesnellpdx joesnellpdx changed the base branch from develop to fix/navigation-typo October 15, 2021 18:10
@joesnellpdx joesnellpdx changed the base branch from fix/navigation-typo to develop October 15, 2021 18:11
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.

Update release workflow documentation
3 participants