Skip to content

Generate readme in CI #543

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

Closed
wants to merge 2 commits into from
Closed
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: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ on:
jobs:
files-up-to-date:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- name: Checkout commit
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
Expand All @@ -28,6 +33,15 @@ jobs:
- name: "`yarn format` changes committed?"
run: yarn format:check

- name: Generate README
run: |
yarn gen-readme
git config --global user.name github-actions[bot]
git config --global user.email github-actions[bot]@users.noreply.github.com
git add README.md
git commit -m "Update README.md"
git push

- name: "`yarn gen-readme` changes committed?"
run: |
yarn gen-readme
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ This guide will always assume you are starting with the latest TypeScript and Re
#### VS Code Extensions

- refactoring help https://marketplace.visualstudio.com/items?itemName=paulshen.paul-typescript-toolkit
- R+TS Code Snippets (there are a few...)
- React+TypeScript Code Snippets (there are a few...)
- https://marketplace.visualstudio.com/items?itemName=infeng.vscode-react-typescript
- https://www.digitalocean.com/community/tutorials/the-best-react-extension-for-vs-code
- TypeScript official extension https://code.visualstudio.com/docs/languages/typescript
Expand Down
2 changes: 1 addition & 1 deletion docs/basic/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This guide will always assume you are starting with the latest TypeScript and Re
## VS Code Extensions

- refactoring help https://marketplace.visualstudio.com/items?itemName=paulshen.paul-typescript-toolkit
- R+TS Code Snippets (there are a few...)
- React+TypeScript Code Snippets (there are a few...)
- https://marketplace.visualstudio.com/items?itemName=infeng.vscode-react-typescript
- https://www.digitalocean.com/community/tutorials/the-best-react-extension-for-vs-code
- TypeScript official extension https://code.visualstudio.com/docs/languages/typescript
Expand Down