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 READMEs #86

Merged
merged 1 commit into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Action and CLI to help managing public repositories that publish one or more npm

## getting started

(pnpm is required, so install pnpm if not available yet)
The easiest way to create a new turbo-module is to use [`create-turbo-module`](https://github.com/whopio/turbo-module/tree/main/packages/create-turbo-module):

NOTE: pnpm is required, so install pnpm if not available yet

```bash
pnpm create turbo-module
Expand All @@ -14,6 +16,16 @@ Follow the instructions given by the CLI.

After a successful install the github repo needs to be configured. Follow the steps outlined in the README of your newly set-up turbo-module

## features

- publish multiple npm packages from the same repository
- release new versions by accepting automatically created PRs
- after every release there are 2 PRs created, one for a full release and one of a canary release
- the full release PR can be configured by commenting `/major`, `/minor` or `/patch`
- automatic GitHub release with every npm release
- [`unimported-action`](https://github.com/whopio/unimported-action) installed by default
- repository linting with PR hints

## action `whopio/turbo-module`:

Multi-purpose action - different sub-actions can be invoked via the `action` input
Expand Down
13 changes: 13 additions & 0 deletions packages/create-turbo-module/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# create-turbo-module

The easiest way to bootstrap a new [`turbo-module`](https://github.com/whopio/turbo-module)

## usage

NOTE: pnpm is required

```bash
pnpm create turbo-module
```

After following the instructions from the CLI, push the repository to github and follow the steps in its README to finish setup.
24 changes: 19 additions & 5 deletions packages/create-turbo-module/template/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
# turbo-module starter
# (turbo-module): $$NAME

this is a starter template generated from `create-turbo-module`
this is a [`turbo-module`](https://github.com/whopio/turbo-module) starter template generated using [`create-turbo-module`](https://github.com/whopio/turbo-module/tree/main/packages/create-turbo-module)

## Additional setup:
## repository setup

After creating your turbo-module, push the repository to github and apply the following (recommended) settings:

- Only allow squash merging PRs and set the default message to `Pull request title and description`
- install kodiakhq
- set up branch protection for the `main` branch, i.E.:
- install [kodiakhq](https://github.com/marketplace/kodiakhq#pricing-and-setup)
- set up branch protection for the `main` branch:
- require a pull request before merging
- require approvals: 1+
- require review from code owners
- require status checks to pass before merging
- require branches to be up to date before merging
- require conversation resolution before merging
- restrict who can push to matching branches
- resitrct pushes that create matching branches
- allow kodiakhq to push to matching branches
- allow actions to create PRs (/settings/actions). This has to be allowed on the repo and org level
- add your `NPM_TOKEN` to your workflow secrets

## additional setup

NOTE: The PR action has to run at least once for these checks to become selectable

- updated the branch protection rules for the `main` branch:
- require status checks to pass before merging:
- Check unimported
- Lint repository
- Test repository